<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>布罗特的Blog &#187; 前端开发</title>
	<atom:link href="http://www.bunorte.com/category/develop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bunorte.com</link>
	<description>记录生活,电影,感悟,关注WebDesign,CSS,Wordpress。</description>
	<lastBuildDate>Wed, 21 Dec 2011 02:36:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>网站前端开发资料收集</title>
		<link>http://www.bunorte.com/2010/03/01/web-develop-material-1/</link>
		<comments>http://www.bunorte.com/2010/03/01/web-develop-material-1/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 11:06:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>

		<guid isPermaLink="false">http://www.bunorte.com/?p=653</guid>
		<description><![CDATA[Web 前端最佳实践之内容篇 Web 前端最佳实践之Server篇 Web 前端优化最佳实践之 Cookie 篇 三列互适应等高且中列宽度自适应布局的几个方法 [翻译]寻找圣杯 利用box-sizing实现div仿框架 body标签class属性的妙用(Google Reader前端简单分析) IE中查看js错误 常用CSS缩写语法总结 PDA 网站制作规范 Web前端开发必备工具更新为2010.02.03]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dbanotes.net/web/best_practices_for_speeding_up_your_web_site_content.html" target="_blank">Web 前端最佳实践之内容篇</a> <a href="http://www.dbanotes.net/web/best_practices_for_speeding_up_your_web_site_server.html" target="_blank">Web 前端最佳实践之Server篇</a> <a href="http://www.dbanotes.net/web/best_practices_for_speeding_up_your_web_site_server_cookie.html" target="_blank">Web 前端优化最佳实践之 Cookie 篇</a></p>
<p><a href="http://www.cssass.com/blog/index.php/2008/42.html" target="_blank">三列互适应等高且中列宽度自适应布局的几个方法</a> <a href="http://ued.alipay.com/?p=381" target="_blank">[翻译]寻找圣杯</a></p>
<p><a href="http://www.14px.com/?p=196" target="_blank">利用box-sizing实现div仿框架</a> <a href="http://www.99css.com/?p=19" target="_blank">body标签class属性的妙用(Google Reader前端简单分析)</a></p>
<p><a href="http://pkufranky.blogspot.com/2009/03/iejs.html" target="_blank">IE中查看js错误</a> <a href="http://www.w3cn.org/article/tips/2005/103.html" target="_blank">常用CSS缩写语法总结</a> <a href="http://www.lioil.net/lbs/article.asp?id=242" target="_blank">PDA 网站制作规范</a> <a href="http://www.hemin.cn/blog/?p=64" target="_blank">Web前端开发必备工具更新为2010.02.03</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2010/03/01/web-develop-material-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>sIFR technology</title>
		<link>http://www.bunorte.com/2009/05/23/sifr-technology/</link>
		<comments>http://www.bunorte.com/2009/05/23/sifr-technology/#comments</comments>
		<pubDate>Sat, 23 May 2009 15:17:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[sIFR]]></category>

		<guid isPermaLink="false">http://www.bunorte.com/?p=640</guid>
		<description><![CDATA[几个月前曾经写过一篇"Web Fonts 路在何方"，然而这种技术看起来要得到广泛应用还是不太可能，主要原因就是万恶的IE。碰到需要用到特殊字体的时候，还是sIFR更靠谱。其实sIFR技术在几年前就有了，w3cn.org上2005年就有翻译文章:如何以及何时使用sIFR，经过几年的发展，sIFR应该说是更加成熟，最新的内测版本都已经到了3. 下面留存几个相关网址，看完这些文章后，对sIFR的使用基本上就没有障碍。 sIFR官网 sIFR Generator OTF转换为TTF工具 谈谈sIFR - 可伸缩Inman Flash替换]]></description>
			<content:encoded><![CDATA[<p>几个月前曾经写过一篇<a href="http://www.bunorte.com/design/where-is-web-fonts.html">"Web Fonts 路在何方"</a>，然而这种技术看起来要得到广泛应用还是不太可能，主要原因就是万恶的IE。碰到需要用到特殊字体的时候，还是sIFR更靠谱。其实sIFR技术在几年前就有了，w3cn.org上2005年就有翻译文章:<a title="如何以及何时使用sIFR" href="http://www.w3cn.org/article/translate/2005/117.html">如何以及何时使用sIFR</a>，经过几年的发展，sIFR应该说是更加成熟，最新的内测版本都已经到了3.</p>
<p>下面留存几个相关网址，看完这些文章后，对sIFR的使用基本上就没有障碍。<br />
<a href="http://www.mikeindustries.com/blog/sifr/">sIFR官网</a> <a title="Link to sIFR Generator" href="http://www.sifrgenerator.com/" target="_blank">sIFR Generator</a> <a href="http://cnhnln.googlepages.com/ff4win">OTF转换为TTF工具</a> <a href="http://kiya.cn/2009/05/scalable-inman-flash-replacement/">谈谈sIFR - 可伸缩Inman Flash替换</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2009/05/23/sifr-technology/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>原生JS选项卡切换</title>
		<link>http://www.bunorte.com/2009/03/12/js-tab-change/</link>
		<comments>http://www.bunorte.com/2009/03/12/js-tab-change/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 11:17:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.bunorte.com/?p=602</guid>
		<description><![CDATA[以前模拟新浪做过一个简单版的tab切换，这回增强一下，选项不采用常规的ul,li结构，更加语义化。此切换可以自己指定默认显示哪个Tab，兼顾JS被禁止情况下的页面效果，算是自己对渐进增强的一点点理解。 &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62; &#60;title&#62;JS选项卡切换&#60;/title&#62; &#60;style&#62; body{font:12px/1.5 Tahoma,Helvetica,Arial,sans-serif} #wrapper{margin:0 auto;width:400px;height:auto;border:1px #333 solid;position:relative;overflow:auto/*clear floats*/} .box{margin:0;padding:0;clear:both} ul{margin:0;width:100%;padding:0;float:left;background:#ccc; list-style:circle;list-style-position:inside} ul.json{margin:24px 0 0 0} #wrapper h3{height:24px;line-height:24px;margin:0;width:85px; display:inline-block;padding:0 0 0 15px} #wrapper h3.json{position:absolute;top:0;cursor:pointer} #wrapper h3.on{background:#0099FF} #wrapper #box1 h3.json{left:0} #wrapper #box2 h3.json{left:100px} #wrapper #box3 h3.json{left:200px} #wrapper #box4 h3.json{left:300px} [...]]]></description>
			<content:encoded><![CDATA[<p>以前模拟新浪做过一个<a href="http://www.bunorte.com/labs/tabs/index.html" title="简单版的tab切换">简单版的tab切换</a>，这回增强一下，选项不采用常规的ul,li结构，更加语义化。此切换可以自己指定默认显示哪个Tab，兼顾JS被禁止情况下的页面效果，算是自己对渐进增强的一点点理解。</p>
<p><span id="more-602"></span></p>
<div class="runcode">
<p><textarea rows="8" cols="60"  name="runcode" class="runcode_text" id="runcode_n2I0uU">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;JS选项卡切换&lt;/title&gt;
&lt;style&gt;
body{font:12px/1.5 Tahoma,Helvetica,Arial,sans-serif}
#wrapper{margin:0 auto;width:400px;height:auto;border:1px #333 solid;position:relative;overflow:auto/*clear floats*/}
.box{margin:0;padding:0;clear:both}
ul{margin:0;width:100%;padding:0;float:left;background:#ccc;
list-style:circle;list-style-position:inside}
ul.json{margin:24px 0 0 0}
#wrapper h3{height:24px;line-height:24px;margin:0;width:85px;
display:inline-block;padding:0 0 0 15px}
#wrapper h3.json{position:absolute;top:0;cursor:pointer}
#wrapper h3.on{background:#0099FF}
#wrapper #box1 h3.json{left:0}
#wrapper #box2 h3.json{left:100px}
#wrapper #box3 h3.json{left:200px}
#wrapper #box4 h3.json{left:300px}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;wrapper&quot;&gt;
&lt;div class=&quot;box&quot; id=&quot;box1&quot;&gt;
&lt;h3&gt;title 1&lt;/h3&gt;
&lt;ul&gt;
    &lt;li&gt;content1&lt;/li&gt;
    &lt;li&gt;content1&lt;/li&gt;
    &lt;li&gt;content1&lt;/li&gt;
    &lt;li&gt;content1&lt;/li&gt;
    &lt;li&gt;content1&lt;/li&gt;
    &lt;li&gt;content1&lt;/li&gt;
    &lt;li&gt;content1&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;box&quot; id=&quot;box2&quot;&gt;
&lt;h3&gt;title 2&lt;/h3&gt;
&lt;ul&gt;
    &lt;li&gt;content2&lt;/li&gt;
    &lt;li&gt;content2&lt;/li&gt;
    &lt;li&gt;content2&lt;/li&gt;
    &lt;li&gt;content2&lt;/li&gt;
    &lt;li&gt;content2&lt;/li&gt;
    &lt;li&gt;content2&lt;/li&gt;
    &lt;li&gt;content2&lt;/li&gt;
    &lt;li&gt;content2&lt;/li&gt;
    &lt;li&gt;content2&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;box&quot; id=&quot;box3&quot;&gt;
&lt;h3&gt;title 3&lt;/h3&gt;
&lt;ul&gt;
    &lt;li&gt;content3&lt;/li&gt;
    &lt;li&gt;content3&lt;/li&gt;
    &lt;li&gt;content3&lt;/li&gt;
    &lt;li&gt;content3&lt;/li&gt;
    &lt;li&gt;content3&lt;/li&gt;
    &lt;li&gt;content3&lt;/li&gt;
    &lt;li&gt;content3&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;box&quot; id=&quot;box4&quot;&gt;
&lt;h3&gt;title 4&lt;/h3&gt;
&lt;ul&gt;
    &lt;li&gt;content4&lt;/li&gt;
    &lt;li&gt;content4&lt;/li&gt;
    &lt;li&gt;content4&lt;/li&gt;
    &lt;li&gt;content4&lt;/li&gt;
    &lt;li&gt;content4&lt;/li&gt;
    &lt;li&gt;content4&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
window.onload=tabs;
var Item = 4;//设置默认显示第几个Tab
function addClass(element,value) {
  if (!element.className) {
    element.className = value;
  } else {
    element.className+= &quot; &quot;;
    element.className+= value;
  }
}
function tabs(){
	var h3s = document.getElementsByTagName(&quot;h3&quot;);
	/*将默认显示的tab高亮*/
	addClass(h3s[Item-1],&quot;on&quot;);
	var uls = document.getElementsByTagName(&quot;ul&quot;);
	for(var i=0;i&lt;uls.length;i++)
	{
		//将所有ul切换到JS支持状态下
		uls[i].className = &quot;json&quot;;
		//将默认显示的Tab对应的内容显示
		if(i==Item-1) uls[Item-1].style.display = &quot;&quot;;
		//将其他的Tab对应的内容隐藏
		else uls[i].style.display = &quot;none&quot;;
	}
	for(var i=0;i&lt;h3s.length;i++)
	{
		//将所有h3切换到JS支持状态下
		addClass(h3s[i],&quot; json&quot;);
		//点击选项卡时进行切换
		h3s[i].onclick= function(){setTab(this);}
	}
}
function setTab(whichtab) {
	//获取当前鼠标点击标题时外层DIV对应的ID
	var boxid = whichtab.parentNode.getAttribute(&quot;id&quot;);
	//截取ID最后一个数值
	var id=boxid.substr(boxid.length-1,1);
	currentItem = Item;
	//如果鼠标不是划过默认显示的Tab，才进行下一步的隐藏和切
    if (id!= currentItem) {
	var defaultBox=document.getElementById(&quot;box&quot;+currentItem);
	//隐藏当前显示的Tab对应的内容
	defaultBox.getElementsByTagName(&quot;ul&quot;)[0].style.display = &quot;none&quot;;
	//将当前显示的Tab切换到非高亮状态
	defaultBox.getElementsByTagName(&quot;h3&quot;)[0].className = &quot;json&quot;;
    }
	var currentBox = document.getElementById(&quot;box&quot;+id);
	//显示目标Tab对应的内容
	currentBox.getElementsByTagName(&quot;ul&quot;)[0].style.display = &quot;&quot;;
	//将目标Tab切换到高亮状
	addClass(currentBox.getElementsByTagName(&quot;h3&quot;)[0],&quot; on&quot;);
	//Tab切换完成
	Item = id;//将当前Tab的数值存储到变量以供下一次调用
}
&lt;/script&gt;
&lt;/body&gt;&lt;/html&gt;
</textarea></p>
<p><input type="button" value="Run" class="runcode_button" onclick="runcode_open_new('runcode_n2I0uU');"/> <input type="button" value="Copy" class="runcode_button" onclick="runcode_copy('runcode_n2I0uU');"/> Tips:You can change the code before run.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2009/03/12/js-tab-change/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>浮动的bug与清除浮动</title>
		<link>http://www.bunorte.com/2009/02/17/float-bug-and-clear-float/</link>
		<comments>http://www.bunorte.com/2009/02/17/float-bug-and-clear-float/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 03:51:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[float]]></category>

		<guid isPermaLink="false">http://www.bunorte.cn/?p=521</guid>
		<description><![CDATA[今天用回原先做的模板，修改DIV嵌套后出现bug一只，wrapper的白色背景无法被左右浮动的层里显示，最后才发现在footer中除了clear:both外还多了float:left；删除后bug终于解决。这只bug在别的blog中也很容易重现，虽然解决但是还搞不清楚原理是什么。footer清除了content和sidebar的左右浮动之后，照理应该与它们无关，没想到还会影响父层。另外还发现在IE6中body下一级div的margin-bottom不起作用，但是margin-top有效，给body设定padding-bottom可以实现，可能因为一级div高度不定时无法获取body高度，也可能是其他原因。 整理书签的时候发现quirksmode上的一篇Clearing floats，有时候页面中不存在footer，在不增加额外代码的情况下，使用overflow来清除浮动算是最简便的方法，不过必须指定宽度或高度来触发IE下的hasLayout。nnBTW:今天收到edong的邮件，提示bunorte.cn将于下月到期。这次不想再续，在godaddy注册了一个bunorte.com，可能空间还是跟风之逸一起合租。尽管域名和空间都托管在国外，访问速度会影响一些，但是不管怎样总比被“鸡爱抚大步流”监管好，案也不备了。]]></description>
			<content:encoded><![CDATA[<p>今天用回原先做的模板，修改DIV嵌套后出现bug一只，wrapper的白色背景无法被左右浮动的层里显示，最后才发现在footer中除了clear:both外还多了float:left；删除后bug终于解决。这只bug在别的blog中也很容易重现，虽然解决但是还搞不清楚原理是什么。footer清除了content和sidebar的左右浮动之后，照理应该与它们无关，没想到还会影响父层。另外还发现在IE6中body下一级div的margin-bottom不起作用，但是margin-top有效，给body设定padding-bottom可以实现，可能因为一级div高度不定时无法获取body高度，也可能是其他原因。</p>
<p>整理书签的时候发现quirksmode上的一篇<a href="http://www.quirksmode.org/css/clearing.html" title="CSS - Clearing floats">Clearing floats</a>，有时候页面中不存在footer，在不增加额外代码的情况下，使用overflow来清除浮动算是最简便的方法，不过必须指定宽度或高度来触发IE下的hasLayout。nnBTW:今天收到edong的邮件，提示bunorte.cn将于下月到期。这次不想再续，在godaddy注册了一个bunorte.com，<del datetime="2009-03-12T09:05:44+00:00">可能空间还是跟<a href="http://www.rainboww.net/" title="逸林轩">风之逸</a>一起合租</del>。尽管域名和空间都托管在国外，访问速度会影响一些，但是不管怎样总比被“鸡爱抚大步流”监管好，案也不备了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2009/02/17/float-bug-and-clear-float/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Web Fonts 路在何方</title>
		<link>http://www.bunorte.com/2008/11/19/where-is-web-fonts/</link>
		<comments>http://www.bunorte.com/2008/11/19/where-is-web-fonts/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 07:21:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[web fonts]]></category>
		<category><![CDATA[字体]]></category>

		<guid isPermaLink="false">http://www.bunorte.cn/?p=514</guid>
		<description><![CDATA[2007年8月28日，A List Apart上发表了一篇文章：CSS@Ten: The Next Big Thing，在宣告CSS十周岁的同时，更是带来了让网页设计师欢欣鼓舞的消息：Web Fonts 归来。时至今日，主流浏览器中目前只有Safari 3.1以上版本才支持web fonts技术。在CSS@Ten中提到Dieter Steffmann，一位强大的字体设计师，在他的主页上提供了非常多的字体下载。虽然web fonts技术对于中文用处不大（众所周知中文字体文件动则几M，严重影响网页打开速度），但是在英文这部分，设计师有了更多的发挥空间，不再拘泥于系统自带的那几个Arial,Tahoma,Verdana固定字体。在这里有一个Demo页，可以使用Safari 3.2观看效果。 在其他的浏览器方面，微软是一心一意进行自己的EOT技术，IEBlog上长篇大论的说的只是WEFT。Firefox 3.1开始新增对@font-face的支持，但是目前还没有发布正式版（不知道会不会跳票到明年），感兴趣的可以下载这个尝一下鲜。最新的chromium bulid5673 还不行。同样，最新的Opera也不支持。BTW：对于web开发者，尤其是iphone的网站开发，可以看看这里的文章。]]></description>
			<content:encoded><![CDATA[<p>2007年8月28日，A List Apart上发表了一篇文章：<a class="external" title="CSS @ Ten: The Next Big Thing" href="http://www.alistapart.com/articles/cssatten">CSS@Ten: The Next Big Thing</a>，在宣告CSS十周岁的同时，更是带来了让网页设计师欢欣鼓舞的消息：Web Fonts 归来。时至今日，主流浏览器中目前只有Safari <a class="external" href="http://developer.apple.com/documentation/AppleApplications/Reference/SafariCSSRef/Articles/OtherStandardCSS3Features.html">3.1以上版本</a>才支持web fonts技术。在<a class="external" title="CSS @ Ten: The Next Big Thing" href="http://www.alistapart.com/articles/cssatten">CSS@Ten</a>中提到Dieter Steffmann，一位强大的字体设计师，在<a class="external" title="Dieter Steffmann" href="http://moorstation.org/typoasis/designers/steffmann/index.htm">他的主页</a>上提供了非常多的字体下载。虽然web fonts技术对于中文用处不大（众所周知中文字体文件动则几M，严重影响网页打开速度），但是在英文这部分，设计师有了更多的发挥空间，不再拘泥于系统自带的那几个Arial,Tahoma,Verdana固定字体。在这里有一个<a href="http://www.bunorte.cn/labs/webfonts/csszen.html">Demo页</a>，可以使用<a class="external" title="Apple - Safari - Download" href="http://www.apple.com/safari/download/">Safari 3.2</a>观看效果。</p>
<p>在其他的浏览器方面，微软是一心一意进行自己的EOT技术，<a class="external" title="IEBlog : Font Embedding on the Web" href="http://blogs.msdn.com/ie/archive/2008/07/21/font-embedding-on-the-web.aspx">IEBlog上长篇大论的说的只是WEFT</a>。Firefox 3.1开始<a class="external" title="@font-face - Mozilla Developer Center" href="https://developer.mozilla.org/en/CSS/@font-face">新增对@font-face的支持</a>，但是目前还没有发布正式版（不知道会不会跳票到明年），感兴趣的可以<a class="external" title="Mozilla Firefox, Portable Edition 3.1 Beta 1" href="http://portableapps.com/apps/internet/firefox_portable/test">下载这个</a>尝一下鲜。最新的chromium bulid5673 还不行。同样，最新的<a class="external" href="http://www.opera.com/docs/specs/opera9/css/">Opera也不支持</a>。BTW：对于web开发者，尤其是iphone的网站开发，可以看看<a class="external" title="Internet &amp; Web - Safari" href="http://developer.apple.com/internet/safari/">这里</a>的文章。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2008/11/19/where-is-web-fonts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>谁说容易谁说难</title>
		<link>http://www.bunorte.com/2008/11/04/easy-or-hard/</link>
		<comments>http://www.bunorte.com/2008/11/04/easy-or-hard/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 08:39:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.bunorte.cn/?p=511</guid>
		<description><![CDATA[简单的东西在不同的人眼里看来，还是有不同的，看到这篇教程，标题取名“谁说容易谁说难”，好像是一下子说到了心里。一个非常简单通用的tab切换，完全是静态内容显示，js调试也会让人花时间。也许自己再做注释只是为了以后能够看懂是什么意思。Blog有一个好处，你可以从别人写的东西里面了解他的经历，他曾经的心情。而我也看到很多值得学习的闪光点。]]></description>
			<content:encoded><![CDATA[<p>简单的东西在不同的人眼里看来，还是有不同的，看到<a title="谁说容易谁说难" href="http://blog.sina.com.cn/s/blog_4ca37cb101009ybk.html">这篇教程</a>，标题取名“谁说容易谁说难”，好像是一下子说到了心里。<a href="http://www.bunorte.com/labs/tabs/index.html">一个非常简单通用的tab</a>切换，完全是静态内容显示，js调试也会让人花时间。也许自己再做注释只是为了以后能够看懂是什么意思。Blog有一个好处，你可以从别人写的东西里面了解他的经历，他曾经的心情。而我也看到很多值得学习的闪光点。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2008/11/04/easy-or-hard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>浏览器的CSS兼容性笔记</title>
		<link>http://www.bunorte.com/2008/10/25/browser-css-compatibility-note/</link>
		<comments>http://www.bunorte.com/2008/10/25/browser-css-compatibility-note/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 10:31:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[兼容性]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://www.bunorte.cn/?p=495</guid>
		<description><![CDATA[曾经在某前端开发的招聘要求中看到要知道在IE6.0、IE7.0、IE8.0、Firefox1.5+、Opera下css的不同表现，浏览器兼容性自己也不是很清楚，总是碰到问题了去google，或者用hack，还是慢慢记录下来一点，免得忘记。CSS2 手册在线版：http://www.52css.com/css/ CSS hack浏览器兼容一览表：http://www.w3cn.org/article/tips/2006/120.html CSS 属性介绍、兼容性查找：http://reference.sitepoint.com/css/ 1. min/max-width/height IE5.5 &#38; IE6：不支持 IE6在怪异模式下支持td，th，tr的min-height(via) IE7，IE8：支持 Firefox 1.0+：支持 Opera 9.2+：支持 Opera 9.0(2007.03.28) 对图片max-width支持有bug Via Bug Download Safari 1.3：部分支持，Safari 2+： 支持 2. ul标签在firefox中默认有左padding 40px,上下margin 16px的,而在IE中只有左margin 40px=30pt 3. overflow-x,overflow-y在opera中不支持 会同时出现水平和垂直滚动条 Via 4. clear属性在IE5.5,IE6,IE7下有Bug Via IE6 Peekaboo Bug IE7 Bug Report IE7 Bug 5. z-index属性在ie和ff下表现不同，在IE中，子元素无法突破父元素的限制，所以子元素与父元素的同级会出现按照既定顺序来排列的情况；在FF中，子元素可以突破限制，盖住父元素的同级。Via]]></description>
			<content:encoded><![CDATA[<p>曾经在某前端开发的招聘要求中看到要知道在IE6.0、IE7.0、IE8.0、Firefox1.5+、Opera下css的不同表现，浏览器兼容性自己也不是很清楚，总是碰到问题了去google，或者用hack，还是慢慢记录下来一点，免得忘记。<span id="more-495"></span>CSS2 手册在线版：<a title="CSS在线手册" href="http://www.52css.com/css/">http://www.52css.com/css/</a></p>
<p>CSS hack浏览器兼容一览表：<a title="CSS hack浏览器兼容一览表" href="http://www.w3cn.org/article/tips/2006/120.html">http://www.w3cn.org/article/tips/2006/120.html</a></p>
<p>CSS 属性介绍、兼容性查找：<a title="SitePoint CSS Reference" href="http://reference.sitepoint.com/css/">http://reference.sitepoint.com/css/</a></p>
<p>1.   min/max-width/height<br />
IE5.5 &amp; IE6：不支持<br />
IE6在怪异模式下支持td，th，tr的min-height(<a id="d:yb" title="via" href="http://reference.sitepoint.com/css/min-height">via</a>)<br />
IE7，IE8：支持<br />
Firefox 1.0+：支持<br />
Opera 9.2+：支持<br />
Opera 9.0(2007.03.28) 对图片max-width支持有bug <a id="ymuc" title="Via" href="http://www.mixfog.com/blog/2006/11/opera-max-width-display-table-cell-bug.htm">Via</a> <a id="gs4n" title="Bug Report" href="http://www.quirksmode.org/bugreports/archives/2007/08/Opera_img_max_width_bug.html">Bug</a> <a id="wb3m" title="Download" href="http://arc.opera.com/pub/opera/win/900/int/">Download</a><br />
Safari 1.3：部分支持，Safari 2+： 支持</p>
<p>2.   ul标签在firefox中默认有左padding 40px,上下margin 16px的,而在IE中只有左margin 40px=30pt</p>
<p>3.   overflow-x,overflow-y在opera中不支持 会同时出现水平和垂直滚动条 <a id="qkua" title="Via" href="http://v1.planabc.net/article.asp?id=186">Via</a></p>
<p>4.   clear属性在IE5.5,IE6,IE7下有Bug <a id="qp2j" title="Via" href="http://reference.sitepoint.com/css/clear">Via</a> <a id="quo6" title="IE6 Peekaboo Bug" href="http://www.positioniseverything.net/explorer/peekaboo.html">IE6 Peekaboo Bug</a> <a id="o_xi" title="IE7 Bug Report" href="http://www.brunildo.org/test/IEWfc3.html">IE7 Bug Report</a> <a id="gv5g" title="IE7 Bug Page 2" href="http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/FloatedClearedBug.html">IE7 Bug</a></p>
<p>5.    z-index属性在ie和ff下表现不同，在IE中，子元素无法突破父元素的限制，所以子元素与父元素的同级会出现按照既定顺序来排列的情况；在FF中，子元素可以突破限制，盖住父元素的同级。<a title="z-index 属性之IE/FF下同性不同貌" href="http://www.osmn00.com/?p=27#more-27">Via</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2008/10/25/browser-css-compatibility-note/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>蓝色的开心网</title>
		<link>http://www.bunorte.com/2008/08/27/kaixin-style-blue/</link>
		<comments>http://www.bunorte.com/2008/08/27/kaixin-style-blue/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 10:23:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Customize]]></category>
		<category><![CDATA[Stylish]]></category>
		<category><![CDATA[开心网]]></category>

		<guid isPermaLink="false">http://www.bunorte.cn/?p=489</guid>
		<description><![CDATA[仅仅改了颜色和宽度，模仿成早期FB的型。CSS调整宽度完全是个体力活，只改了些常用的页面，很多还没有测试过。使用方法：Firefox+Stylish,添加kaixin_blue_style到Stylish。]]></description>
			<content:encoded><![CDATA[<p>仅仅改了颜色和宽度，模仿成早期<a title="facebook" href="http://www.facebook.com">FB</a>的型。CSS调整宽度完全是个体力活，只改了些常用的页面，很多还没有测试过。使用方法：<a title="Firefox web browser" href="http://www.mozilla.com/en-US/firefox/">Firefox</a>+<a title="Stylish 0.5.7" href="https://addons.mozilla.org/en-US/firefox/addon/2108">Stylish</a>,添加<a title="kaixin.com blue style" href="http://userstyles.org/styles/10022">kaixin_blue_style</a>到Stylish。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2008/08/27/kaixin-style-blue/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Html Enhancement with Spry</title>
		<link>http://www.bunorte.com/2008/06/28/html-enhancement-with-spry/</link>
		<comments>http://www.bunorte.com/2008/06/28/html-enhancement-with-spry/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 03:11:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Spry]]></category>

		<guid isPermaLink="false">http://www.bunorte.cn/?p=98</guid>
		<description><![CDATA[图中Dreamweaver CS4中正在编辑的网页其实是一个Spry的例子，利用HtmlDataSet从静态页面中获取数据然后填...]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bunorte.com/wp-content/uploads/2008/05/dreamweaver_cs_4_preview.jpeg" width="363" height="127" alt="dreamweaver cs4" title="dreamweaver cs4"/>图中Dreamweaver CS4中正在编辑的网页其实是<a href="http://labs.adobe.com/technologies/spry/articles/best_practices/samples/pe-07.html">一个Spry的例子</a>，利用HtmlDataSet从静态页面中获取数据然后填充到Spry区域中，实现简单的ajax效果。Spry这个框架发展到现在已经不再像cs3刚出来时简单的选项卡下拉，它的include目录就有35个js文件，涵盖HTML,XML,JSON,DOM,Effects等等方面，这都是Adobe公司以及开发者的努力完成的，而这个还处在Labs中的产品还在开发之中，<a href="http://labs.adobe.com/technologies/spry/" title="Spry framework for Ajax ">最新版本1.6.1</a>。</p>
<p>上面的例子在Adobe的官方文档页可以找到<a href="http://labs.adobe.com/technologies/spry/articles/best_practices/progressive_enhancement.html" title="Progressive Enhancement with Spry">详细的说明</a>，具体是怎样实现最终的效果都有介绍。而我所关注的是范例是否与web标准冲突，考虑用户是否禁用js，是否禁用css，在各种情况下用户能不能看到最重要的内容。这个例子做的比较好，唯一有点不完美的就是HTML中掺杂了Spry数据代码，当用户禁用了js的时候，虽然可以看到默认的内容，但是多除了那些代码，可能会造成困扰。如果用js来生成可以更好，不过那又是一项繁复的工作了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2008/06/28/html-enhancement-with-spry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>a:hover在IE6中的bug</title>
		<link>http://www.bunorte.com/2008/06/20/a_hover_bug_fix/</link>
		<comments>http://www.bunorte.com/2008/06/20/a_hover_bug_fix/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 02:25:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.bunorte.cn/diary/ahover%e7%9a%84bug%e5%8f%8a%e4%bf%ae%e6%ad%a3.html</guid>
		<description><![CDATA[HP Mini 产品页中有一个功能，产品图中有4个热点，鼠标划过时可以显示说明文字，在firefox下很完美，不过在IE里有些瑕疵，鼠标划过时出现说明框，一开始还有残留的背景图片一角。搜索到淘宝UED上的一篇文章：IE6 中 a:hover 的bug 尝试修改了一下css，position:static解决了问题。效果页:IE6鼠标划过有残影版本 修正后的完美版本。PS:2个页面在Firefox里一样，在IE6里不同。 当然，也可以把strong的绝对坐标移到a之外也可以不出现残留，不过这里主要是考虑解决问题的方法。HP的这种嵌套形式值得借鉴,外层div相对，然后4个span绝对通过ID来确定不同位置,span里面a默认不设position，a:hover才相对span定位,最终strong默认不显示，移过a时才设定为绝对，同时都是对应各自的a,用得及其灵活，不过把热点做到背景图里后期修改就要麻烦设计师了，不过为了实现透明还是有必要的，采用png或者透明gif为background可能会需要多做点功夫。]]></description>
			<content:encoded><![CDATA[<p><a id="elx6" title="HP Mini 产品页" href="http://h30420.www3.hp.com/mininb/">HP Mini 产品页</a>中有一个功能，产品图中有4个热点，鼠标划过时可以显示说明文字，在firefox下很完美，不过在IE里有些瑕疵，鼠标划过时出现说明框，一开始还有残留的背景图片一角。搜索到淘宝UED上的一篇文章：<a id="w83h" class="taggedlink" title="Permanent Link: IE6 中 a:hover 的bug" href="http://ued.taobao.com/blog/2007/03/05/ie6-hover-bug/">IE6 中 a:hover 的bug</a> 尝试修改了一下css，position:static解决了问题。效果页:<a id="rfir" title="IE6鼠标划过有残影版本" href="/labs/hpmini/index2.html">IE6鼠标划过有残影版本</a> <a id="hi1q" title="修正后的完美版本" href="/labs/hpmini/index.html">修正后的完美版本</a>。PS:2个页面在Firefox里一样，在IE6里不同。</p>
<p>当然，也可以把strong的绝对坐标移到a之外也可以不出现残留，不过这里主要是考虑解决问题的方法。HP的这种嵌套形式值得借鉴,外层div相对，然后4个span绝对通过ID来确定不同位置,span里面a默认不设position，a:hover才相对span定位,最终strong默认不显示，移过a时才设定为绝对，同时都是对应各自的a,用得及其灵活，不过把热点做到背景图里后期修改就要麻烦设计师了，不过为了实现透明还是有必要的，采用png或者透明gif为background可能会需要多做点功夫。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2008/06/20/a_hover_bug_fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gmail Redesigned</title>
		<link>http://www.bunorte.com/2008/05/24/gmail-redesigned/</link>
		<comments>http://www.bunorte.com/2008/05/24/gmail-redesigned/#comments</comments>
		<pubDate>Fri, 23 May 2008 17:26:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Customize]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[Stylish]]></category>

		<guid isPermaLink="false">http://www.bunorte.cn/diary/gmail-redesigned.html</guid>
		<description><![CDATA[Gmail Redesigned (via Stylish) 大幅改善了Gmail的视觉体验，就靠一个界面就能让人使用Gmail。严重期待Google Reader Redesigned和Google Docs Redesigned.]]></description>
			<content:encoded><![CDATA[<p><img src="http://docs.google.com/File?id=dhqz6kvv_12fmnrdgck_b" alt="Gmail Redesigned" /></p>
<p><a title="Gmail Redesigned" href="http://userstyles.org/styles/5867">Gmail Redesigned</a> (via <a title="Stylish" href="https://addons.mozilla.org/firefox/2108/">Stylish</a>) 大幅改善了Gmail的视觉体验，就靠一个界面就能让人使用Gmail。严重期待Google Reader Redesigned和Google Docs Redesigned.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2008/05/24/gmail-redesigned/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>利用好YSlow，提高网页打开速度</title>
		<link>http://www.bunorte.com/2008/01/13/speed-up-your-website/</link>
		<comments>http://www.bunorte.com/2008/01/13/speed-up-your-website/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 06:22:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[YSlow]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[网页]]></category>
		<category><![CDATA[规则]]></category>
		<category><![CDATA[速度]]></category>

		<guid isPermaLink="false">http://www.bunorte.cn/program/feed-id.html</guid>
		<description><![CDATA[在经过我修改模板，CSS，和功能后，用YSlow测试打开首页得分已经可以达到93分了。除了Use a CDN是F级，Make JavaScript and CSS External是n/a外，其他11项全部是A。要说是怎么做的，就是根据Yahoo的14条规则去进行优化，有些技术是以前听过的，有的则没接触过，不过凡事都是慢慢摸索出来的。Yahoo还提供了YSlow这样方便的插件，对于Web Developr来说真是一款利器，不管是自己的Blog,还是工作中碰到提高速度的问题，都可以进行应用。 一篇对14条准则的中文翻译。n原文地址：如何提高网页的效率（上篇）——提高网页效率的14条准则 一篇主要谈Expires Header，Cache,ETag的。n原文地址：Config HTTP Header For Better Client Performance 一篇主要介绍YSlow的文章。n原文地址:如何提高网页的效率（下篇）——Use YSlow to know why your web Slow 我对blog进行的几条优化。 1. 在后台选项-&#62;阅读中开启Gzip,在不使用wordpress内置缓存或者其他cache插件的情况下，Gzip可以很有效的压缩网页大小。当然，也有人研究出wp-cache与Gzip共存的方法，这里就不讨论了。 2.还是那句老话，压缩CSS，将用到的背景图片做到一张图里，通过位置来控制显示哪个。我Blog上的这些小图标其实全部都是一张图片。淘宝好像是把所有用到的背景图片做到一张图里，真是有点BT。不过这个活是有点技术含量的，要考虑不同的情况，并不是全部堆到一起了事。 3.规则13 Configure ETags 我以前从来没听说过ETag这个词，不过根据上面第2篇文章里的介绍有了点了解，对于使用单服务器的网站来说，静态资源(主要是图片)的生命周期比较长，所以没什么必要通过检测ETag来处理是否同一资源而像客户端发送，所以直接关闭就可以。对于Apache，就是在httpd.conf或者.htaccess中加一行FileETag none，我是采用后者，直接把.htaccess文件放到theme的images目录里。 4.规则3 Expires header 同样参照上面第2篇文章，给图片设置一个月后过期，style.css.php代码参考这个来对CSS进行Gzip,顺便设置过期时间，我是设置的一天，因为CSS修改算比较频繁。另外还可以看看这篇文章，我的.htaccess代码就是根据它修改的。比较幸运的是，我的空间支持mod_expires。 大致上就是这4条，不过要利用YSlow进行检测，看得分如何，有什么提示。目前我的YSlow有93分，也因为没有在Blog里加任何统计代码，不调用js。因为统计用的代码都会拖慢速度，如果用别人提供的自己无法控制Expires header，装自己空间里会占用一定资源，mint的调用方法比较难设置Expires，我还没找到其他什么好用的php+mysql统计程序。]]></description>
			<content:encoded><![CDATA[<p>在经过我修改模板，CSS，和功能后，用YSlow测试打开首页得分已经可以达到93分了。除了Use a CDN是F级，Make JavaScript and CSS External是n/a外，其他11项全部是A。要说是怎么做的，就是根据Yahoo的<a title=" Best Practices for Speeding Up Your Web Site" href="http://developer.yahoo.com/performance/rules.html">14条规则</a>去进行优化，有些技术是以前听过的，有的则没接触过，不过凡事都是慢慢摸索出来的。Yahoo还提供了YSlow这样方便的插件，对于Web Developr来说真是一款利器，不管是自己的Blog,还是工作中碰到提高速度的问题，都可以进行应用。<span id="more-52"></span></p>
<p>一篇对14条准则的中文翻译。n原文地址：<a href="http://www.cnblogs.com/JustinYoung/archive/2007/11/20/speeding-up-web-site-14rule.html">如何提高网页的效率（上篇）——提高网页效率的14条准则</a></p>
<p>一篇主要谈Expires Header，Cache,ETag的。n原文地址：<a href="http://morganchengmo.spaces.live.com/blog/cns!9950CE918939932E!2132.entry">Config HTTP Header For Better Client Performance</a></p>
<p>一篇主要介绍YSlow的文章。n原文地址:<a href="http://www.cnblogs.com/JustinYoung/archive/2007/11/28/speeding-up-web-site-yslow.html">如何提高网页的效率（下篇）——Use YSlow to know why your web Slow </a></p>
<h3>我对blog进行的几条优化。</h3>
<p>1.  在后台选项-&gt;阅读中开启Gzip,在不使用wordpress内置缓存或者其他cache插件的情况下，Gzip可以很有效的压缩网页大小。当然，也有人研究出<a title="WordPress性能优化入门" href="http://blogsdiy.org/2007-12/optimize-wordpress/">wp-cache与Gzip共存的方法</a>，这里就不讨论了。</p>
<p>2.还是那句老话，压缩CSS，将用到的背景图片做到一张图里，通过位置来控制显示哪个。我Blog上的这些小图标其实全部都是一张图片。淘宝好像是把所有用到的背景图片做到一张图里，真是有点BT。不过这个活是有点技术含量的，要考虑不同的情况，并不是全部堆到一起了事。</p>
<p>3.规则13 Configure ETags 我以前从来没听说过ETag这个词，不过根据上面第2篇文章里的介绍有了点了解，对于使用单服务器的网站来说，静态资源(主要是图片)的生命周期比较长，所以没什么必要通过检测ETag来处理是否同一资源而像客户端发送，所以直接关闭就可以。对于Apache，就是在httpd.conf或者.htaccess中加一行FileETag none，我是采用后者，直接把.htaccess文件放到theme的images目录里。</p>
<p>4.规则3 Expires header   同样参照上面第2篇文章，给图片设置一个月后过期，style.css.php代码参考<a href="http://zhiqiang.org/blog/posts/dreamhost-on-gzip-cache.html">这个</a>来对CSS进行Gzip,顺便设置过期时间，我是设置的一天，因为CSS修改算比较频繁。另外还可以看看<a title="加速blog：设置浏览器缓存" href="http://zhiqiang.org/blog/posts/speedup-blog-set-browser-cache.html">这篇文章</a>，我的.htaccess代码就是根据它修改的。比较幸运的是，我的空间支持mod_expires。</p>
<p>大致上就是这4条，不过要利用YSlow进行检测，看得分如何，有什么提示。目前我的YSlow有93分，也因为没有在Blog里加任何统计代码，不调用js。因为统计用的代码都会拖慢速度，如果用别人提供的自己无法控制Expires header，装自己空间里会占用一定资源，mint的调用方法比较难设置Expires，我还没找到其他什么好用的php+mysql统计程序。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2008/01/13/speed-up-your-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE里的图片间距</title>
		<link>http://www.bunorte.com/2007/07/29/ie-pic-space-bug/</link>
		<comments>http://www.bunorte.com/2007/07/29/ie-pic-space-bug/#comments</comments>
		<pubDate>Sun, 29 Jul 2007 13:35:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://bunorte.007.ittot.com/?p=7</guid>
		<description><![CDATA[网站底部有个广告图片区域，用的是li排列，里面插入的img标签，CSS里设置了ul,li,img的高度都统一，在firefox里很完美，图片紧贴着外边框。但是在IE里图片的下边很明显可以看到几px的间距，造成了高度增加，这样左右底部就不对齐了，影响美观。搜索了一下，发现了在li标签里加img的问题，进而找到蓝色理想的一篇帖子：IE图片下空隙问题解决方法集合，知道了几种解决方法. 1.设置img的display为block 2.设置img的vertical-align为top 3.设置img父容器的font-size为0 4.设置img 的margin-bottom为负值，同时针对FF设置margin-bottom为0]]></description>
			<content:encoded><![CDATA[<p>网站底部有个广告图片区域，用的是li排列，里面插入的img标签，CSS里设置了ul,li,img的高度都统一，在firefox里很完美，图片紧贴着外边框。但是在IE里图片的下边很明显可以看到几px的间距，造成了高度增加，这样左右底部就不对齐了，影响美观。搜索了一下，发现了<a title="在li标签里加img的问题" href="http://www.fireyy.com/web-developer/297.html">在li标签里加img的问题</a>，进而找到蓝色理想的一篇帖子：<a title="IE图片下空隙问题解决方法集合" href="http://bbs.blueidea.com/thread-2669514-1-1.html">IE图片下空隙问题解决方法集合</a>，知道了几种解决方法.<br />
1.设置img的display为block<br />
2.设置img的vertical-align为top<br />
3.设置img父容器的font-size为0<br />
4.设置img 的margin-bottom为负值，同时针对FF设置margin-bottom为0</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2007/07/29/ie-pic-space-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script Rule</title>
		<link>http://www.bunorte.com/2007/07/14/script-rule/</link>
		<comments>http://www.bunorte.com/2007/07/14/script-rule/#comments</comments>
		<pubDate>Sat, 14 Jul 2007 09:54:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[规则]]></category>

		<guid isPermaLink="false">http://bunorte.007.ittot.com/?p=6</guid>
		<description><![CDATA[慢慢积累日常写代码时的错误。1.定义数组要写Array,array是错的。2.length写成lenth。3.getElementsByTagName里Elements多了一个s，跟getElementById不同。4.script在头部调用和直接把代码复制到网页里效果不同。]]></description>
			<content:encoded><![CDATA[<p>慢慢积累日常写代码时的错误。1.定义数组要写Array,array是错的。2.length写成lenth。3.getElementsByTagName里Elements多了一个s，跟getElementById不同。4.script在头部调用和直接把代码复制到网页里效果不同。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2007/07/14/script-rule/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Line-height/Replaced Element Bug</title>
		<link>http://www.bunorte.com/2007/07/13/css-line-height-bug/</link>
		<comments>http://www.bunorte.com/2007/07/13/css-line-height-bug/#comments</comments>
		<pubDate>Fri, 13 Jul 2007 13:30:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[行高]]></category>

		<guid isPermaLink="false">http://bunorte.007.ittot.com/?p=5</guid>
		<description><![CDATA[发现在有图片，文字，文本框在同一行里，很难控制对齐。搜索到这篇文章中文的简单说明找到这里，但是按照里面的方法没有解决问题。不知道为什么。有时间再研究一下。]]></description>
			<content:encoded><![CDATA[<p>发现在有图片，文字，文本框在同一行里，很难控制对齐。搜索到<a href="http://www.positioniseverything.net/explorer/lineheightbug.html" title="Internet Explorer: Line-height / Replaced Element Bug">这篇文章</a>中文的简单说明找到<a href="http://www.tigerhood.net/blog/read.php/111.htm" title=" Line-height / Replaced Element Bug">这里</a>，但是按照里面的方法没有解决问题。不知道为什么。有时间再研究一下。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2007/07/13/css-line-height-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE Comment Bug</title>
		<link>http://www.bunorte.com/2007/07/12/ie-comment-bug/</link>
		<comments>http://www.bunorte.com/2007/07/12/ie-comment-bug/#comments</comments>
		<pubDate>Thu, 12 Jul 2007 16:16:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Comment]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://bunorte.007.ittot.com/?p=4</guid>
		<description><![CDATA[实际工作中碰到问题，通过论坛和搜索解决了，值得记一记。今天收到测试员的邮件，错误截图是IE6里的，在某处搜索结果的10/100出现了2个100，第2个100跑到第2行。在IE7和FF里都是正确的，联想到前些天在blueidea论坛看到的一个帖子，然后就去仔细看了一下，发现有人说这是IE的注释bug.可以通过加clear或者修改注释在程序的位置(其实就是程序员把注释写到div里面去了)。 搜索到这个，里面有人说在《CSS Mastery Advanced Web Standards Solutions》书里有说到经典的注释bug： IE 6 duplicate character bug: This bug manifests itself when you have multiple comments in between the first and last of a series of floated elements. The first two comments have no effect, but each subsequent comment causes two characters to be duplicated. 解决方法就是把html代码中那些连续float元素间的注释给删了，我是为了方便还是给那个元素加了clear:both 。]]></description>
			<content:encoded><![CDATA[<p>实际工作中碰到问题，通过论坛和搜索解决了，值得记一记。今天收到测试员的邮件，错误截图是IE6里的，在某处搜索结果的10/100出现了2个100，第2个100跑到第2行。在IE7和FF里都是正确的，联想到前些天在blueidea论坛<a title="IE中发现新BUG " href="http://bbs.blueidea.com/thread-1924448-1-1.html">看到的一个帖子</a>，然后就去仔细看了一下，发现有人说这是IE的注释bug.可以通过加clear或者修改注释在程序的位置(其实就是程序员把注释写到div里面去了)。</p>
<p><span id="more-4"></span></p>
<p>搜索到<a title="求助：HTML CSS 的 IE兼容性问题" href="http://www.3snews.net/bbs/archiver/?tid-1405.html">这个</a>，里面有人说在《CSS Mastery Advanced Web Standards Solutions》书里有说到经典的注释bug：</p>
<blockquote><p>IE 6 duplicate character bug: This bug manifests itself when you have multiple comments in between the first and last of a series of floated elements. The first two comments have no effect, but each subsequent comment causes two characters to be duplicated.</p></blockquote>
<p>解决方法就是把html代码中那些连续float元素间的注释给删了，我是为了方便还是给那个元素加了clear:both 。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2007/07/12/ie-comment-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>!important的顺序问题</title>
		<link>http://www.bunorte.com/2007/07/12/how-to-use-important/</link>
		<comments>http://www.bunorte.com/2007/07/12/how-to-use-important/#comments</comments>
		<pubDate>Thu, 12 Jul 2007 15:40:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[important]]></category>
		<category><![CDATA[W3C]]></category>

		<guid isPermaLink="false">http://bunorte.007.ittot.com/?p=519</guid>
		<description><![CDATA[虽然很早就已经从w3cn.org看到这个hack，但是今天突然发现以前的想法是错的。我以前知道只有IE不支持!important这个语法,其他浏览器都支持，所以在出现浏览效果不同的时候，就强行给某些属性加!important，但是都是后写!important，因为我的理解是IE不支持!important，那它就认定先写的没有!important的值，而后面写了!important的值就是其他浏览器读取。今天看到这个，发现我的想法是不对的。 正确的做法应该先写带!important的值，这样其他浏览器就认定这个优先级最高，读取这个值，然后再写一个为IE的值，由于它不支持!important语法，所以先写的带!important的值被IE读取为那个值，之后又被下面定义的值所覆盖掉，这样在IE里认定的后来写的值，而不是先前写的带!important的值。所以，以后要做CSS Hack,记得要先定义带!important的!!!!!!!!!]]></description>
			<content:encoded><![CDATA[<p>虽然很早就已经从w3cn.org看到<a title="用!important解决IE和Mozilla的布局差别" href="http://www.w3cn.org/article/tips/2004/91.html">这个hack</a>，但是今天突然发现以前的想法是错的。我以前知道只有IE不支持!important这个语法,其他浏览器都支持，所以在出现浏览效果不同的时候，就强行给某些属性加!important，但是都是后写!important，因为我的理解是IE不支持!important，那它就认定先写的没有!important的值，而后面写了!important的值就是其他浏览器读取。今天看到<a title="XHTML+CSS兼容性解决方案小集" href="http://www.700net.com/rewrite.php/read-1945.html">这个</a>，发现我的想法是不对的。</p>
<p>正确的做法应该先写带!important的值，这样其他浏览器就认定这个优先级最高，读取这个值，然后再写一个为IE的值，由于它不支持!important语法，所以先写的带!important的值被IE读取为那个值，之后又被下面定义的值所覆盖掉，这样在IE里认定的后来写的值，而不是先前写的带!important的值。所以，以后要做CSS Hack,记得要先定义带!important的!!!!!!!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2007/07/12/how-to-use-important/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>网页标准之常见错误</title>
		<link>http://www.bunorte.com/2007/07/12/simple-w3c-mistake/</link>
		<comments>http://www.bunorte.com/2007/07/12/simple-w3c-mistake/#comments</comments>
		<pubDate>Thu, 12 Jul 2007 14:00:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[W3C]]></category>

		<guid isPermaLink="false">http://bunorte.007.ittot.com/?p=518</guid>
		<description><![CDATA[要想达到This Page Is Valid XHTML 1.0 Strict!的目标，必须慢慢积累。写网页代码的时候要逐步向标准靠拢。最开始就要避免一些常规的错误. 1.所有的标签都要用小写。比如a,p,span,ul,li div等等。2.所有的id,class属性后都要用引号。比如id=&#8221;wrapper&#8221;,class=&#8221;logo&#8221;。3.调用java script最好单独把代码写到js文件里，然后从网页头部调用。并且要加type=&#8221;text/JavaScript&#8221;，不能用language=&#8221;Javascript&#8221;。4.所有的单独标签要用/&#62;关闭。比如&#60;br /&#62;,&#60;hr /&#62;等等。5.body里没有onload属性，要实现应该用JS。6.target=&#8221;_blank&#8221;不符合严格标准定义，要换rel=&#8221;external&#8221; via]]></description>
			<content:encoded><![CDATA[<p>要想达到This Page Is Valid XHTML 1.0 Strict!的目标，必须慢慢积累。写网页代码的时候要逐步向标准靠拢。最开始就要避免一些常规的错误.</p>
<p>1.所有的标签都要用小写。比如a,p,span,ul,li div等等。<br />2.所有的id,class属性后都要用引号。比如id=&rdquo;wrapper&rdquo;,class=&rdquo;logo&rdquo;。<br />3.调用java script最好单独把代码写到js文件里，然后从网页头部调用。并且要加type=&rdquo;text/JavaScript&rdquo;，不能用language=&rdquo;Javascript&rdquo;。<br />4.所有的单独标签要用/&gt;关闭。比如&lt;br /&gt;,&lt;hr /&gt;等等。<br />5.body里没有onload属性，要实现应该用JS。<br />6.target=&rdquo;_blank&rdquo;不符合严格标准定义，要换rel=&rdquo;external&rdquo;   <a href="http://www.w3cn.org/article/tips/2005/107.html" title="_blank开新窗口不符合标准?">via</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2007/07/12/simple-w3c-mistake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>单图转滚和图片限制的运用</title>
		<link>http://www.bunorte.com/2007/07/11/google-korea-style/</link>
		<comments>http://www.bunorte.com/2007/07/11/google-korea-style/#comments</comments>
		<pubDate>Wed, 11 Jul 2007 05:02:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[单图转滚]]></category>

		<guid isPermaLink="false">http://bunorte.007.ittot.com/?p=517</guid>
		<description><![CDATA[Google Korea页面下方的动态效果研究 Via 明白了background-position中x,y轴的计算方法。]]></description>
			<content:encoded><![CDATA[<p>Google Korea页面下方的动态效果研究 <a href="http://demo.rexsong.com/200705/google_korea/">Via</a> 明白了background-position中x,y轴的计算方法。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunorte.com/2007/07/11/google-korea-style/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.241 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-01-09 12:49:40 -->

