<?xml version="1.0" encoding="UTF-8"?>
  <feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html"><![CDATA[蜗爱CSS]]></title>
  <subtitle type="html"><![CDATA[css初学者 前端技术]]></subtitle>
  <id>http://www.woaicss.com/</id>
  <link rel="alternate" type="text/html" href="http://www.woaicss.com/" /> 
  <link rel="self" type="application/atom+xml" href="http://www.woaicss.com/atom.asp" /> 
  <generator uri="http://www.pjhome.net/" version="2.8">PJBlog3</generator> 
  <updated>2010-07-23T16:06:09+08:00</updated>

  <entry>
	  <title type="html"><![CDATA[line-height详解]]></title>
	  <author>
		 <name>woniu</name>
		 <uri>http://www.woaicss.com/</uri>
		 <email>wo-ai-niqq@163.com</email>
	  </author>
	  <category term="" scheme="http://www.woaicss.com/default.asp?cateID=3" label="Div+css基础" /> 
	  <updated>2010-07-23T16:06:09+08:00</updated>
	  <published>2010-07-23T16:06:09+08:00</published>
		  <summary type="html"><![CDATA[&nbsp;&nbsp;偶然看到的一篇介绍line-height的文章，图文并茂很详细也很透彻，转过来学习。<br/><br/><br/><span style="color:Red"><span style="font-size:14pt;line-height:100%;">line-height详解</span></span><br/><br/>行高指的是文本行的基线间的距离，但是文本之间的空白距离不仅仅是行高决定的，同时也受字号的影响。<br/><br/><strong>7.3.1 语法</strong><br/><br/>line-height属性的具体定义列表如下：<br/><br/>语法： line-height : normal | &lt;实数&gt; | &lt;长度&gt; | &lt;百分比&gt; | inherit<br/>说明： 设置元素中行的高度。<br/>值： normal：默认行高，一般为1到1.2； 实数：实数值，缩放因子； 长度：合法的长度值，可为负数； 百分比：百分比取值基于元素的字体尺寸。<br/>初始值： normal<br/>继承性： 继承<br/>适用于： 所有元素<br/>媒体： 视觉<br/>计算值： 长度和百分比值为绝对值；其他同指定值。<br/><br/>行高指的是文本行的基线间的距离。而基线（Base line），指的是一行字横排时下沿的基础线，基线并不是汉字的下端沿，而是英文字母x的下 端沿，同时还有文字的顶线（Top line）、中线（Middle line）和底线（Bottom line），用以确定文字行的位置，如图7-17 所示。<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/k201072316223.gif" border="0" alt=""/><br/>图7-17 文字的基线<br/><br/>行高与字体尺寸的差称为行距（leading），如图7-18所示。<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/120107231636.gif" border="0" alt=""/><br/>图7-18 行高与行距<br/><br/><strong>7.3.2 内容区域、行内框和行框</strong><br/><br/>理论上讲，一行中的每个元素都有一个内容区域，它是由字体尺寸决定的，如图7-19所示。<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/4201072316334.gif" border="0" alt=""/><br/>图7-19 内容区域<br/><br/>行内元素会生成一个行内框（inline box），行内框只是一个概念，它无法显示出来，但是它又确实存在。在没有其他因素影响的时候，行内框等于内容区域，而设定行高则可以增加或者减少行内框的高度，即：将行距的值（行高-字体尺寸）除以2，分别增加到内容区域的上下两边，如图7-20所示。<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/0201072316414.gif" border="0" alt=""/><br/>图7-20 行内框与行高<br/><br/>由于行高可以应用在任何元素上，因此同一行内的若干元素可能有不同的行高和行内框高，例如有如下代码，其显示如图7-21所示。<br/><br/>&lt;p style=”line-height:20px;”&gt;行高20px。&lt;strong style=”line-height:50px;”&gt; 行高50px。&lt;/strong&gt;&lt;span style=”line-height:30px;”&gt;行高30px。&lt;/span&gt;&lt;/p&gt;<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/v201072316438.gif" border="0" alt=""/><br/>图7-21 行内框与行框<br/><br/>这里又有一个新的概念——行框（line box）。同行内框类似，行框是指本行的一个虚拟的矩形框，其高度等于本行内所有元素中行高最大的值。因此，当有多行内容时，每行都会有自己的行框，如图7-22所示。<br/><br/><br/><img src="http://www.woaicss.com/attachments/month_1007/3201072316512.gif" border="0" alt=""/><br/>图7-22 多行内容的行框<br/><br/><strong>提示</strong>：理解行框和行内框的概念对于学习本章[7.4垂直对齐：vertical-align属性]一节的内容非常重要。<br/><strong>注意</strong>：行框的高度只同本行内元素的行高有关，而和父元素的高度（height）无关。<br/><br/><strong>7.3.3 行高的计算与继承</strong><br/>以em、ex和百分比为单位的行高，其基数是元素本身的字体尺寸。例如有代码如下：<br/><br/>&lt;p style=”font-size:20px;line-height:2em;”&gt;字高20px，行高2em。&lt;/p&gt; &lt;p style=”font-size:30px;line-height:2em;”&gt;字高30px，行高2em。&lt;/p&gt;<br/><br/>2个段落的行高都为2em，但是字体大小不同，因此显示如图7-23所示。<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/t201072316550.gif" border="0" alt=""/><br/>图7-23 行高的计算<br/><br/>行高可以设定得比字体高度小，此时多行的文字将叠加到一起，例如有如下代码，其显示如图7-24所示。<br/><br/>p { font-size : 20px; line-height :10px; }<br/><br/>&lt;p&gt;字高20px，行高10px。此时多行的文字将叠加到一起。&lt;/p&gt;<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/m201072316723.gif" border="0" alt=""/><br/>图7-24 比字体高度小的行高<br/><br/>行高是可继承的，但是继承的是计算值，例如有如下代码：<br/><br/>p { font-size :20px; line-height : 2em; }<br/>p span { font-size : 30px; }<br/><br/>&lt;p&gt;字高20px。&lt;span&gt;字高30px。&lt;/span&gt;&lt;/p&gt;<br/><br/>&lt;p&gt;元素的行高2em，字体尺寸为20px，因此计算值为40px，虽然&lt;span&gt;元素本身的字体尺寸为30px，不过其继承的行高仍为40px。但是在不同的浏览器内显示的效果却不尽相同，如图7-25所示。<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/z201072316755.gif" border="0" alt=""/><br/>图7-25 行高的不同表现<br/><br/>由于继承的是计算值，因此当元素内的文字字体尺寸不一样的时候，如果设定固定的行高很可能造成字体的重叠，例如有如下代码，其显示如图7-26所示。<br/><br/>p { font-size : 20px; line-height : 1em; }<br/>p span { font-size : 30px; }<br/><br/>&lt;p&gt;字高20px，行高1em，当文本为多行时可能会发生文字重叠的现象。&lt;span&gt;字高30px。&lt;/span&gt;&lt;/p&gt;<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/t201072316824.gif" border="0" alt=""/><br/>图7-26行高继承造成文字叠加<br/><br/>为了避免这种情况，可以为每个元素单独定义行高，但是这样很烦琐，因此可以定义一个没有单位的实数值作为缩放因子来统一控制行高，缩放因子是直接继承的，而不是继承计算值。例如修改上例中的行高为：<br/><br/>p { line-height : 1; }<br/><br/>则上例中的XHTML代码显示如图7-27所示。<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/q201072316851.gif" border="0" alt=""/><br/>图7-27缩放因子对行高的影响<br/><br/>当内容中含有图片的时候，如果图片的高度大于行高，则含有图片行的行框将被撑开到图片的高度，如图7-28所示。<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/5201072316952.gif" border="0" alt=""/><br/>图7-28 含有图片的行<br/><br/><strong>注意</strong>：图片虽然撑开了行框，但是不会影响行高，因此也不会影响到基于行高来计算的其他属性。<br/><strong>提示</strong>：当行内含有图片的时候，图片和文字的垂直对齐方式默认是基线对齐，关于垂直对齐将在本章[7.4 垂直对齐：vertical-align属性]一节中讨论。<br/><br/><strong>7.3.4 浏览器的差别与错误</strong><br/>浏览器在显示的时候往往会有自己的表现形式，例如在Opera内，行高将按照CSS定义的将行距除以2增加到内容区域的上下两边，而IE和Firefox则不是完全平分，如图7-29所示。<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/c2010723161022.gif" border="0" alt=""/><br/>图7-29 不同浏览器对行高的显示<br/><br/>不过，相差的1至2个像素在实际显示中一般不会有太大的影响，因此可以忽略不计。比较严重的错误是IE 6.0对于含有图片或者表单元等可替换行内元素的行高失效的问题，不过，在IE 7.0中已经修正了这个错误，但是其表现同其它浏览器也不相同。例如有如下代码，其显示如图7-30所示。<br/><br/>#lineHeight4 p { line-height : 60px; }<br/>#lineHeight4 fieldset{ border : 0; }<br/><br/>&lt;div id=”lineHeight4″&gt; &lt;p&gt;内容含有图片在[IE 6]内浏览line-height将失效。&lt;img src=”../../img/ddcat_anim.gif” alt=”图片” width=”88″ height=”31″ /&gt;&lt;/p&gt; &lt;form id=”testForm” action=”#”&gt; &lt;fieldset&gt; &lt;p&gt;&lt;label for=”test1″&gt;表单元素&lt;/label&gt;&lt; input type=”text” maxlength=”16″ value=”IE6内行高失效” /&gt;&lt;/p&gt; &lt;/fieldset&gt; &lt;/form&gt; &lt;/div&gt;<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/12010723161046.gif" border="0" alt=""/><br/>图7-30 包含替换元素的行高在IE内失效<br/><br/>由图7-30读者可以发现，IE 7.0中，将半行距分别加在了图片的上下，而由于图片默认是基线对齐，因此文字的基线下移了，这显然不符合CSS中的规定。<br/><br/>对于IE 6.0中行高失效的问题，需要使用CSS Hack手段来针对IE 6.0设定替换元素的上下补白来修正。<br/><br/><strong>提示</strong>：关于针对IE 6的CSS Hack，请参见本书[第16章：浏览器与Hack]。<br/><br/><strong>7.3.5 应用：单行文字在垂直方向居中</strong><br/><br/>在网页设计中，往往为了突出标题而添加背景图案，如图7-31所示。<br/><br/><br/><img src="http://www.woaicss.com/attachments/month_1007/12010723164159.gif" border="0" alt=""/><br/>图7-31 包含背景图片的标题<br/><br/>假设此标题的XHTML代码如下：<br/><br/>&lt;div id=”#sample”&gt; &lt;h2&gt;热门帖大盘点&lt;/h2&gt; …… &lt;/div&gt;<br/><br/>此时如果只设定&lt;h2&gt;的背景图片和高，则文字会偏上，如图7-32所示。<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/62010723164138.gif" border="0" alt=""/><br/>图7-32 未设定行高的标题文字<br/><br/>针对这个现象，一般只需要设定与高度相等的行高即可，相关代码如下：<br/><br/>#sample h2 { height : 31px; line-height : 31px; …… }<br/><br/>此时在浏览器内文字已经在垂直位置上居中显示，如图7-33所示。<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/82010723163916.gif" border="0" alt=""/><br/>图7-33 设定行高后的标题文字<br/><br/>此方法同样可以运用在其他需要文字垂直居中显示的地方，例如列表项、导航条等等。<br/><br/>上一小节讲解了行高与单行纯文字的垂直居中，而如果行内含有图片和文字，在浏览器内浏览时，读者可以发现文字和图片在垂直方向并不是沿中线居中，而是沿基线对齐，如图7-34所示。 <br/><br/><img src="http://www.woaicss.com/attachments/month_1007/b2010723163812.gif" border="0" alt=""/><br/>图7-34 文字和图片内容默认垂直对齐方式为基线对齐<br/><br/>这是因为，元素默认的垂直对齐方式为基线对齐（vertical-align: baseline）。<br/><br/><br/><br/><br/><br/><br/><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.woaicss.com/article/div/line-height.htm" /> 
	  <id>http://www.woaicss.com/default.asp?id=204</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[CSS简写总结]]></title>
	  <author>
		 <name>woniu</name>
		 <uri>http://www.woaicss.com/</uri>
		 <email>wo-ai-niqq@163.com</email>
	  </author>
	  <category term="" scheme="http://www.woaicss.com/default.asp?cateID=3" label="Div+css基础" /> 
	  <updated>2010-07-07T16:28:02+08:00</updated>
	  <published>2010-07-07T16:28:02+08:00</published>
		  <summary type="html"><![CDATA[&nbsp;&nbsp;《写出高效整洁的css的13条规则》里面有提到要尽量简写css。具体怎么简写呢，总结如下：<br/><br/><span style="color:Teal"><span style="font-size:14pt;line-height:100%;">盒子的内外边距（margin 和padding）</span></span><br/><br/>以margin为例，padding相同。盒子有上下左右四个方向，每个方向都有个外边距：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>margin-top:1px;<br/>margin-right:1px;<br/>margin-botton:1px;<br/>margin-left:1px;<br/></div></div><br/>这四个值可以缩写到一起：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>margin:1px 1px 1px 1px;<br/></div></div><br/>缩写的顺序是上-&gt;右-&gt;下-&gt;左。顺时针的方向。相对的边的值相同，则可以省掉：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>margin:1px;//四个方向的边距相同，等同于margin:1px 1px 1px 1px;<br/>margin:1px 2px;//上下边距都为1px，左右边距均为2px，等同于margin:1px 2px 1px 2px<br/>margin:1px 2px 3px;//右边距和左边距相同，等同于margin:1px 2px 3px 2px;<br/>margin:1px 2px 1px 3px;//注意，这里虽然上下边距都为1px，但是这里不能缩写。<br/></div></div><br/><br/><span style="color:Teal"><span style="font-size:14pt;line-height:100%;">边框(border)</span></span><br/><br/>border是个比较灵活的属性，它有border-width、border-style、border-color三个子属性。<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>border-width:数字+单位;<br/>border-style: none || hidden || dashed || dotted || double || groove || inset || outset || ridge || solid ;<br/>border-color: 颜色 ;<br/></div></div><br/><br/>它可以按照width、style和color的顺序简写：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>border:5px solid #369;<br/></div></div><br/><br/>有的时候，border可以写的更简单些，有些值可以省掉，但是请注意哪些是必须的，你也可以测试一下：<br/><br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>border:groove red;&nbsp;&nbsp;//大家猜猜这个边框的宽度是多少？<br/>border:solid;&nbsp;&nbsp;//这会是什么样子？<br/>border:5px;&nbsp;&nbsp;//这样可以吗？<br/>border:5px red; //这样可以吗？？<br/>border:red; //这样可以吗？？？ <br/></div></div><br/><br/>通过上面的代码可以了解到，border默认的宽度是3px，默认的色彩是black——黑色。默认的颜色是该规则中的color属性的值，而color默认是黑色的。border的缩写中<strong>border-style是必须的</strong>。<br/><br/>同时，还可以对每条边采用缩写：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>border-top:4px solid #333;<br/>border-right:3px solid #666;<br/>border-bottom:3px solid #666;<br/>border-left:4px solid #333;<br/></div></div><br/>还可以对每个属性采用缩写：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>border-width：1px 2px 3px; //最多可用四个值，缩写规则类似盒子大小的缩写，下同<br/>border-style：solid dashed dotted groove;<br/>border-color:red blue white black;<br/></div></div><br/><span style="color:Teal"><span style="font-size:14pt;line-height:100%;">颜色缩写（color）</span></span><br/><br/>色彩的缩写最简单，在色彩值用16进制的时候，如果每种颜色的值相同，就可以写成一个：<br/><br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>color：#113366<br/></div></div><br/><br/>可以简写为<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>color：#136 <br/></div></div><br/>所有用到16进制色彩值的地方都可以使用简写，比如background-color、border-color、text-shadow、box-shadow等。但是说明下，很多文章对于这种缩写不利于提高浏览器渲染效率。<br/><br/><span style="color:Teal"><span style="font-size:14pt;line-height:100%;">outline</span></span><br/><br/>outline类似border，不同的是border会影响盒模型，而outline不会。<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>outline-width:数字+单位;<br/>outline-style: none || dashed || dotted || double || groove || inset || outset || ridge || solid ;<br/>outline-color: 颜色 ;<br/></div></div><br/><br/>可以缩写为：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>outline:1px solid red;<br/></div></div><br/><br/>同样，outline的简写中，outline-style也是必须的，另外两个值则可选，默认值和border相同。<br/><br/><span style="color:Teal"><span style="font-size:14pt;line-height:100%;">背景(background)</span></span><br/><br/>background是最常用的简写之一，它包含以下属性：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>background-color: color || #hex || RGB(% || 0-255) || RGBa;<br/>background-image:url();<br/>background-repeat: repeat || repeat-x || repeat-y || no-repeat;<br/>background-position: X Y || (top||bottom||center) (left||right||center);<br/>background-attachment: scroll || fixed;<br/></div></div><br/><br/>background的简写可以大大的提高css的效率：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>background:#fff url(img.png) no-repeat 0 0;<br/></div></div><br/><br/>background的简写也有些默认值：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>background:transparent none repeat scroll top left ;<br/></div></div><br/><br/>background属性的值不会继承，你可以只声明其中的一个，其它的值会被应用默认的。<br/><br/><span style="color:Teal"><span style="font-size:14pt;line-height:100%;">字体（font）</span></span><br/><br/>font简写也是使用最多的一个，它也是书写高效的CSS的方法之一。<br/><br/>font包含以下属性：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>font-style: normal || italic || oblique;<br/>font-variant:normal || small-caps;<br/>font-weight: normal || bold || bolder || || lighter || (100-900);<br/>font-size: (number+unit) || (xx-small - xx-large);<br/>line-height: normal || (number+unit);<br/>font-family:name,&#34;more names&#34;;<br/></div></div><br/><br/>font的各个属性也都有默认值，记住这些默认值相对来说比较重要：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>font-style: normal;<br/>font-variant:normal;<br/>font-weight: normal;<br/>font-size: inherit;<br/>line-height: normal;<br/>font-family:inherit;<br/></div></div><br/><br/>事实上，font的简写是这些简写中最需要小心的一个，稍有疏忽就会造成一些意想不到的后果，所以，很多人并不赞成使用font缩写。<br/>不过这里正好有个小手册，相信会让你更好的理解font的简写：<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/w201077162243.jpg" border="0" alt=""/><br/><br/><span style="color:Teal"><span style="font-size:14pt;line-height:100%;">列表样式</span></span><br/><br/>可能大家用的最多的一条关于列表的属性就是：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>list-style:none<br/></div></div><br/><br/>它会清除所有默认的列表样式，比如数字或者圆点。<br/><br/>list-style也有三个属性：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>list-style-type:none || disc || circle || square || decimal || lower-alpha || upper-alpha || lower-roman || upper-roman<br/>list-style-position:&nbsp;&nbsp;inside || outside || inherit<br/>list-style-image:&nbsp;&nbsp;(url) || none || inherit<br/></div></div><br/><br/>list-style的默认属性如下：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>list-style:disc outside none<br/></div></div><br/><br/>需要注意的是，如果list-tyle中定义了图片，那么图片的优先级要比list-style-type高，比如：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>list-style:circle inside url(../img.gif)<br/></div></div><br/><br/>这个例子中，如果img.gif存在，则不会显示前面设置的circle符号。<br/><br/><span style="color:Teal"><span style="font-size:14pt;line-height:100%;">border-radius(圆角半径)</span></span><br/><br/>border-radius是css3中新加入的属性，用来实现圆角边框。这个属性目前不好的一点儿是，各个浏览器对它的支持不同，IE尚不支持，Gecko(firefox)和webkit(safari/chrome)等需分别使用私有前缀-moz-和-webkit-。更让人纠结的是，如果单个角的border-radius属性的写法在这两个浏览器的差异更大，你要书写大量的私有属性：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>-moz-border-radius-bottomleft:6px;<br/>-moz-border-radius-topleft:6px;<br/>-moz-border-radius-topright:6px;<br/>-webkit-border-bottom-left-radius:6px;<br/>-webkit-border-top-left-radius:6px;<br/>-webkit-border-top-right-radius:6px;<br/>border-bottom-left-radius:6px;<br/>border-top-left-radius:6px;<br/>border-top-right-radius:6px;<br/></div></div><br/><br/>是不是你已经看的眼花了？这只是要实现左上角不是圆角，其它三个角都是圆角的情况。所以对于border-radius建议使用缩写：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>-moz-border-radius:0 6px 6px;<br/>-webkit-border-radius:0 6px 6px;<br/>border-radius:0 6px 6px;<br/></div></div><br/><br/>PS:最新的Safari(4.0.5)还不支持这种缩写..杯具<br/><br/><br/>整理自：<a href="http://www.qianduan.net" target="_blank" rel="external">http://www.qianduan.net</a><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.woaicss.com/article/div/css--.htm" /> 
	  <id>http://www.woaicss.com/default.asp?id=203</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[写出高效整洁的css的13条规则]]></title>
	  <author>
		 <name>wangchuang</name>
		 <uri>http://www.woaicss.com/</uri>
		 <email>wo-ai-niqq@163.com</email>
	  </author>
	  <category term="" scheme="http://www.woaicss.com/default.asp?cateID=3" label="Div+css基础" /> 
	  <updated>2010-07-02T09:46:01+08:00</updated>
	  <published>2010-07-02T09:46:01+08:00</published>
		  <summary type="html"><![CDATA[<strong><span style="color:Teal">1. 使用Reset但尽可能少使用全局Reset</span></strong><br/><br/>&nbsp;&nbsp; 不同浏览器元素的默认属性有所不同，使用Reset可重置浏览器元素的一些默认属性，以达到浏览器的兼容。但需要注意的是，请不要使用全局Reset：<br/><br/>*{ margin:0; padding:0; } <br/><br/>　这不仅仅因为它是缓慢和低效率的方法，而且还会导致一些不必要的元素也重置了外边距和内边距。在此建议参考YUI Reset和Eric Meyer的做法。我跟Eric Meyer的观点相同，Reset并不是一成不变的，具体还需要根据项目的不同需求做适当的修改，以达到浏览器的兼容和操作上的便利性。我使用的Reset如下:<br/><br/>/** 清除内外边距 **/ <br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>body, h1, h2, h3, h4, h5, h6, hr, p,&nbsp;&nbsp;<br/>blockquote, /* structural elements 结构元素 */ <br/>dl, dt, dd, ul, ol, li, /* list elements 列表元素 */ <br/>pre, /* text formatting elements 文本格式元素 */ <br/>form, fieldset, legend, button, input, textarea, /* form elements 表单元素 */ <br/>th, td, /* table elements 表格元素 */ <br/>img/* img elements 图片元素 */{&nbsp;&nbsp;<br/>border:medium none;&nbsp;&nbsp;<br/>margin: 0;&nbsp;&nbsp;<br/>padding: 0;&nbsp;&nbsp;<br/>}&nbsp;&nbsp;<br/></div></div><br/><br/>/** 设置默认字体 **/ <br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.woaicss.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> Example Source Code </div><div class="UBBContent"><br/>body,button, input, sel&#101;ct, textarea {&nbsp;&nbsp;<br/>font: 12px/1.5 &#39;宋体&#39;,tahoma, Srial, helvetica, sans-serif;&nbsp;&nbsp;<br/>}&nbsp;&nbsp;<br/>h1, h2, h3, h4, h5, h6 { font-size: 100%; }&nbsp;&nbsp;<br/>em{font-style:normal;}&nbsp;&nbsp;<br/></div></div><br/><br/>/** 重置列表元素 **/ <br/><br/>ul, ol { list-style: none; }&nbsp;&nbsp;<br/><br/>/** 重置超链接元素 **/ <br/><br/>a { text-decoration: none; color:#333;}&nbsp;&nbsp;<br/><br/>a:hover { text-decoration: underline; color:#F40; }&nbsp;&nbsp;<br/><br/>/** 重置图片元素 **/ <br/><br/>img{ border:0px;}&nbsp;&nbsp;<br/><br/>/** 重置表格元素 **/ <br/><br/>table { border-collapse: collapse; border-spacing: 0; } <br/><br/><strong><span style="color:Teal">2.良好的命名和书写习惯</span></strong><br/><br/>无疑乱七八糟或者无语义命名的代码，谁看了都会抓狂。就像这样的代码：<br/><br/>.aaabb{margin:2px;color:red;} <br/><br/>　我想即使是初学者，也不至于会在实际项目中如此命名一个class，但有没有想过这样的代码同样是很有问题的：<br/><br/>&lt;h1&gt;My name is &lt;span class=&#34;red blod&#34;&gt;Wiky&lt;/span&gt;&lt;/h1&gt; <br/><br/>　问题在于如果你需要把所有原本红色的字体改成蓝色，那修改后就样式就会变成：<br/><br/>.red{color:bule;} <br/><br/>　这样的命名就会很让人费解，同样的命名为.leftBar的侧边栏如果需要修改成右侧边栏也会很麻烦。所以，请不要使用元素的特性（颜色，位置，大小等）来命名一个class或id，您可以选择意义的命名如：#navigation{...}，.sidebar{...}，.postwrap{...}<br/><br/>　这样，无论你如何修改定义这些class或id的样式，都不影响它跟HTML元素间的联系。<br/><br/>　另外还有一种情况，一些固定的样式，定义后就不会修改的了，那你命名时就不用担忧刚刚说的那种情况，如<br/><br/>.alignleft{float:left;margin-right:20px;}&nbsp;&nbsp;<br/><br/>.alignright{float:right;text-align:right;margin-left:20px;}&nbsp;&nbsp;<br/><br/>.clear{clear:both;text-indent:-9999px;} <br/><br/>　那么对于这样一个段落<br/><br/>&lt;p class=&#34;alignleft&#34;&gt;我是一个段落！&lt;/p&gt; <br/><br/>　如果需要把这个段落由原先的左对齐修改为右对齐，那么只需要修改它的className就为alignright就可以了。<br/><br/><strong><span style="color:Teal">3. 代码缩写</span></strong><br/><br/>　CSS代码缩写可以提高你写代码的速度，精简你的代码量。在CSS里面有不少可以缩写的属性，包括margin，padding，border，font，background和颜色值等，如果您学会了代码缩写，原本这样的代码：<br/><br/>li{&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;font-family:Arial, Helvetica, sans-serif;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;font-size: 1.2em;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;line-height: 1.4em;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;padding-top:5px;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;padding-bottom:10px;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;padding-left:5px;&nbsp;&nbsp;<br/>} <br/><br/>就可以缩写为：<br/><br/>li{&nbsp;&nbsp;<br/>&nbsp;&nbsp; font: 1.2em/1.4em Arial, Helvetica, sans-serif;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;padding:5px 0 10px 5px;&nbsp;&nbsp;<br/>} <br/><br/>　如果您想更了解这些属性要怎么缩写，可以参考《常用CSS缩写语法总结》或者下载CSS-Shorthand-Cheat-Sheet.pdf 。<br/><br/><br/><strong><span style="color:Teal">4. 利用CSS继承</span></strong><br/><br/>　如果页面中父元素的多个子元素使用相同的样式，那最好把他们相同的样式定义在其父元素上，让它们继承这些CSS样式。这样你可以很好的维护你的代码，并且还可以减少代码量。那么本来这样的代码：<br/><br/>#container li{ font-family:Georgia, serif; }&nbsp;&nbsp;<br/><br/>#container p{ font-family:Georgia, serif; }&nbsp;&nbsp;<br/><br/>#container h1{font-family:Georgia, serif; } <br/><br/>就可以简写成：<br/><br/>#container{ font-family:Georgia, serif; } <br/><br/><strong><span style="color:Teal">5. 使用多重选择器</span></strong><br/><br/>　你可以合并多个CSS选择器为一个，如果他们有共同的样式的话。这样做不但代码简洁且可为你节省时间和空间。如：<br/><br/>h1{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }&nbsp;&nbsp;<br/><br/>h2{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; }&nbsp;&nbsp;<br/><br/>h3{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; } <br/><br/>可以合并为<br/><br/>h1, h2, h3{ font-family:Arial, Helvetica, sans-serif; font-weight:normal; } <br/><br/><strong><span style="color:Teal">6. 适当的代码注释</span></strong><br/><br/>代码注释可以让别人更容易读懂你的代码，且合理的组织代码注释，可使得结构更加清晰。你可以选择做的样式表的开始添加目录:<br/><br/>/*------------------------------------&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;1. Reset&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;2. Header&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;3. Content&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;4. SideBar&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;5. Footer&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;----------------------------------- */ <br/><br/>　如此你代码的结构就一目了然，你可以容易的查找和修改代码。<br/><br/>　而对于代码的主内容，也应适当的加以划分，甚至在有必要的地方在对代码加以注释说明，这样也有利于团队开发:<br/><br/>/***&nbsp;&nbsp;&nbsp;&nbsp;Header&nbsp;&nbsp;***/&nbsp;&nbsp;<br/><br/>#header{ height:145px; position:relative; }&nbsp;&nbsp;<br/><br/>#header h1{ width:324px; margin:45px 0 0 20px; float:left;&nbsp;&nbsp;height:72px;}&nbsp;&nbsp;<br/><br/> /***&nbsp;&nbsp;&nbsp;&nbsp;Content ***/ <br/><br/>#content{ background:#fff; width:650px; float:left; min-height:600px; overflow:hidden;}&nbsp;&nbsp;<br/><br/>#content h1{color:#F00}/* 设置字体颜色 */ <br/><br/>#content .posts{ overflow:hidden; }&nbsp;&nbsp;<br/><br/>#content .recent{ margin-bottom:20px; border-bottom:1px solid #f3f3f3;position:relative;overflow:hidden; }&nbsp;&nbsp;<br/><br/>/***&nbsp;&nbsp;&nbsp;&nbsp;Footer&nbsp;&nbsp;***/ <br/><br/>#footer{ clear:both; padding:50px 5px 0; overflow:hidden;}&nbsp;&nbsp;<br/><br/>#footer h4{ color:#b99d7f; font-family:Arial, Helvetica, sans-serif; font-size:1.1em; } <br/><br/><strong><span style="color:Teal">7. 给你的CSS代码排序</span></strong><br/><br/>如果代码中的属性都能按照字母排序，那查找修改的时候就能更加快速:<br/><br/>/*** 样式属性按字母排序 ***/ <br/><br/>div{&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;background-color:#3399cc;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;color:#666;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;font:1.2em/1.4em Arial, Helvetica, sans-serif;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;height:300px;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;margin:10px 5px;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;padding:5px 0 10px 5px;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;width:30%;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;z-index:10;&nbsp;&nbsp;<br/><br/>} <br/><br/><strong><span style="color:Teal">8. 保持CSS的可读性</span></strong><br/>　　<br/>书写可读的CSS将会使得更容易查找和修改样式。对于以下两种情况，哪种可读性更高，我想不言而明。<br/><br/>/*** 每个样式属性写一行 ***/ <br/><br/>div{&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;background-color:#3399cc;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;color:#666;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;font: 1.2em/1.4em Arial, Helvetica, sans-serif;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;height:300px;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;margin:10px 5px;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;padding:5px 0 10px 5px;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;width:30%;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;z-index:10;&nbsp;&nbsp;<br/><br/>}&nbsp;&nbsp;<br/><br/>/*** 所有的样式属性写在同一行 ***/ <br/><br/>div{ background-color:#3399cc; color:#666; font: 1.2em/1.4em Arial, Helvetica, sans-serif;&nbsp;&nbsp;height:300px; margin:10px 5px; padding:5px 0 10px 5px; width:30%; z-index:10; } <br/><br/>当对于一些样式属性较少的选择器，我会写到一行：<br/><br/>/*** 选择器属性少的写在同一行 ***/ <br/><br/>div{ background-color:#3399cc; color:#666;} <br/><br/>对于这个规则并非硬性规定，但无论您采用哪种写法，我的建议是始终保持代码一致。属性多的分行写，属性少于3个可以写一行。<br/><br/><strong><span style="color:Teal">9. 选择更优的样式属性值</span></strong><br/><br/>　CSS中有些属性采用不同的属性值，虽然达到的效果差不多，当性能上却存在着差异，如<br/><br/>　区别在于border:0把border设为0px，虽然在页面上看不见，但按border默认值理解，浏览器依然对border-width/border-color进行了渲染，即已经占用了内存值。<br/>　而border:none把border设为“none”即没有，浏览器解析“none”时将不作出渲染动作，即不会消耗内存值。所以建议使用border:none;<br/><br/>　同样的，display:none隐藏对象浏览器不作渲染，不占用内存。而visibility:hidden则会。<br/><br/><strong><span style="color:Teal">10. 使用&lt;link&gt;代替@import</span></strong><br/><br/>&nbsp;&nbsp; 首先，@import不属于XHTML标签，也不是Web标准的一部分，它对于较早期的浏览器兼容也不高，并且对于网站的性能有某些负面的影响。具体可以参考《高性能网站设计：不要使用@import》。所以，请避免使用@import<br/><br/><strong><span style="color:Teal">11. 使用外部样式表</span></strong><br/><br/>　这个原则始终是一个很好的设计实践。不单可以更易于维护修改，更重要的是使用外部文件可以提高页面速度，因为CSS文件都能在浏览器中产生缓存。内置在HTML文档中的CSS则会在每次请求中随HTML文档重新下载。所以，在实际应用中，没有必要把CSS代码内置在HTML文档中：<br/><br/>&lt;style type=&#34;text/css&#34; &gt;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;#container{ .. }&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;#sidebar{ .. }&nbsp;&nbsp;<br/><br/>&lt;/style&gt;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp; 或&lt;li style=&#34;font-family:Arial, helvetica, sans-serif; color:#666; &#34; &gt; <br/><br/>而是使用&lt;link&gt;导入外部样式表：<br/><br/>&lt;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34;css/styles.css&#34; /&gt; <br/><br/><strong><span style="color:Teal">12. 避免使用CSS表达式（Expression）</span></strong><br/><br/>　CSS表达式是动态设置CSS属性的强大（但危险）方法。Internet Explorer从第5个版本开始支持CSS表达式。下面的例子中，使用CSS表达式可以实现隔一个小时切换一次背景颜色：<br/><br/>background-color: e&#173;xpression( (new Date()).getHours()%2 ? &#34;#B8D4FF&#34; : &#34;#F08A00&#34; ); <br/><br/>　如上所示，e&#173;xpression中使用了JavaScript表达式。CSS属性根据JavaScript表达式的计算结果来设置。<br/><br/>　表达式的问题就在于它的计算频率要比我们想象的多。不仅仅是在页面显示和缩放时，就是在页面滚动、乃至移动鼠标时都会要重新计算一次。给CSS表达式增加一个计数器可以跟踪表达式的计算频率。在页面中随便移动鼠标都可以轻松达到10000次以上的计算量。<br/><br/>　如果必须使用CSS表达式，一定要记住它们要计算成千上万次并且可能会对你页面的性能产生影响。所以，在非不得已，请避免使用CSS表达式。<br/><br/><strong><span style="color:Teal">13. 代码压缩</span></strong><br/><br/>　当你决定把网站项目部署到网络上，那你就要考虑对CSS进行压缩，出去注释和空格，以使得网页加载得<br/>更快。压缩您的代码，可以采用一些工具，如YUI Compressor<br/>利用它可精简CSS代码，减少文件大小，以获得更高的加载速度。<br/><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.woaicss.com/article/div/css-1.htm" /> 
	  <id>http://www.woaicss.com/default.asp?id=202</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[超漂亮的多层树形下拉菜单css+div]]></title>
	  <author>
		 <name>woniu</name>
		 <uri>http://www.woaicss.com/</uri>
		 <email>wo-ai-niqq@163.com</email>
	  </author>
	  <category term="" scheme="http://www.woaicss.com/default.asp?cateID=11" label="CSS布局实例" /> 
	  <updated>2010-07-01T10:10:15+08:00</updated>
	  <published>2010-07-01T10:10:15+08:00</published>
		  <summary type="html"><![CDATA[&nbsp;&nbsp; 蓝色上taotaoyx共享的一个树形菜单，很好看也很实用。<br/><br/><img src="http://www.woaicss.com/attachments/month_1007/w20107110934.jpg" border="0" alt=""/><br/><br/><img src="http://www.woaicss.com/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/> <a href="http://www.woaicss.com/attachments/month_1007/420107110952.rar" target="_blank">点击下载此文件</a><br/><br/>来自：<a href="http://bbs.blueidea.com/thread-2954778-1-1.html" target="_blank" rel="external">http://bbs.blueidea.com/thread-2954778-1-1.html</a>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.woaicss.com/article/css/menu00.htm" /> 
	  <id>http://www.woaicss.com/default.asp?id=201</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[最近的状态]]></title>
	  <author>
		 <name>woniu</name>
		 <uri>http://www.woaicss.com/</uri>
		 <email>wo-ai-niqq@163.com</email>
	  </author>
	  <category term="" scheme="http://www.woaicss.com/default.asp?cateID=9" label="杂七杂八" /> 
	  <updated>2010-06-23T17:14:24+08:00</updated>
	  <published>2010-06-23T17:14:24+08:00</published>
		  <summary type="html"><![CDATA[&nbsp;&nbsp;与其说忙，不如说是慵懒，做了些东西，发现了些问题，但是懒的总结.....<br/>自己的热情和积极性貌似是一阵阵的....<br/><br/>言归正传，有几件事需要声明下：1.本人不在新浪工作，那个banner是帮朋友做的。<br/><br/>2.加QQ的请注名蜗爱css。<br/><br/>3.友情链接不做无关的，或者相关的聚合类型的站。<br/><br/>4.有技术上的问题，可以Q我或者E-mail。一起探讨解决，但不帮做任何东西。]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.woaicss.com/article/works/ddd.htm" /> 
	  <id>http://www.woaicss.com/default.asp?id=200</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[表格的规范和优先级]]></title>
	  <author>
		 <name>樱花下的吻</name>
		 <uri>http://www.woaicss.com/</uri>
		 <email>wo-ai-niqq@163.com</email>
	  </author>
	  <category term="" scheme="http://www.woaicss.com/default.asp?cateID=3" label="Div+css基础" /> 
	  <updated>2010-06-20T14:50:31+08:00</updated>
	  <published>2010-06-20T14:50:31+08:00</published>
		  <summary type="html"><![CDATA[<p>（1）如果边框的&quot;border-style&quot;设置为&quot;hidden&quot;，那么它的优先级高于任何其他相冲突的边框。任何边框只要有该设置，其他的边框的设置就都将无效。</p>
<p>（2）如果边框的属性中有&quot;none&quot;，那么它的优秀级是最低的。只有在该边重合的所有元素的边框属性都是&quot;none&quot;时，该边框才会被省略。</p>
<p>（3）如果重合的边框中没有被设置为&quot;hidden&quot;的，并且至少有一个不是&quot;none&quot;,那么重合的边框中粗的优先于细的。如果几个边框的&quot;border-width&quot;相同，那么样式的优秀次序由高到低依次为&quot;double&quot;&gt;&quot;solid&quot;&gt;&quot;dashed&quot;&gt;&quot;botted&quot;&gt;&quot;ridge&quot;&gt;&quot;outset&quot;&gt;&quot;groove&quot;&gt;&quot;inset&quot;.</p>
<p>（4）如果边框样式的其他设置均相同，只是颜色上有区别，那么单元格的样式最优先，然后依次是行、行组、列、列组的样式，最后是表格的样式。 不过IE浏览器还没有完全执行上面这个规范的规定，FF执行规范</p>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.woaicss.com/article/div/199.htm" /> 
	  <id>http://www.woaicss.com/default.asp?id=199</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[IE6兼容问题汇总]]></title>
	  <author>
		 <name>woniu</name>
		 <uri>http://www.woaicss.com/</uri>
		 <email>wo-ai-niqq@163.com</email>
	  </author>
	  <category term="" scheme="http://www.woaicss.com/default.asp?cateID=5" label="Hack" /> 
	  <updated>2010-06-11T14:47:42+08:00</updated>
	  <published>2010-06-11T14:47:42+08:00</published>
		  <summary type="html"><![CDATA[1、终极方法：条件注释<br/><br/>&lt;!--[if lte IE 6]&gt; 这段文字仅显示在 IE6及IE6以下版本。 &lt;![endif]--&gt;<br/><br/>&lt;!--[if gte IE 6]&gt; 这段文字仅显示在 IE6及IE6以上版本。 &lt;![endif]--&gt;<br/><br/>&lt;!--[if gt IE 6]&gt; 这段文字仅显示在 IE6以上版本（不包含IE6）。 &lt;![endif]--&gt;<br/><br/>&lt;!--[if IE 5.5]&gt; 这段文字仅显示在 IE5.5。 &lt;![endif]--&gt;<br/><br/>&lt;!--在 IE6及IE6以下版本中加载css--&gt;<br/><br/>&lt;!--[if lte IE 6]&gt; &lt;link type=&#34;text/css&#34; rel=&#34;stylesheet&#34; href=&#34;css/ie6.css&#34; mce_href=&#34;css/ie6.css&#34; /&gt;&lt;![endif]--&gt;<br/>缺点是在IE浏览器下可能会增加额外的HTTP请求数。<br/><br/>2、CSS选择器区分<br/><br/>IE6不支持子选择器；先针对IE6使用常规申明CSS选择器，然后再用子选择器针对IE7+及其他浏览器。<br/><br/>/* IE6 专用 */<br/><br/>.content {color:red;}<br/><br/>/* 其他浏览器 */<br/><br/>div&gt;p .content {color:blue;} --&gt;<br/>3、PNG半透明图片的问题<br/><br/>虽然可以通过JS等方式解决，但依然存在载入速度等问题，所以，这个在设计上能避免还是尽量避免为好。以达到网站最大优化。<br/><br/>4、IE6下的圆角<br/><br/>IE6不支持CSS3的圆角属性，性价比最高的解决方法就是用图片圆角来替代，或者放弃IE6的圆角。<br/><br/>5、IE6背景闪烁<br/><br/>如果你给链接、按钮用CSS sprites作为背景，你可能会发现在IE6下会有背景图闪烁的现象。造成这个的原因是由于IE6没有将背景图缓存，每次触发hover的时候都会重新加载，可以用JavaScript设置IE6缓存这些图片：<br/><br/>document.execCommand(&#34;BackgroundImageCache&#34;,false,true);<br/>6、最小高度<br/><br/>IE6 不支持min-height属性，但它却认为height就是最小高度。解决方法：使用ie6不支持但其余浏览器支持的属性!important。<br/><br/>#container {min-height:200px; height:auto !important; height:200px;}<br/>7、最大高度<br/><br/>//直接使用ID来改变元素的最大高度<br/>var container = document.getElementById(&#39;container&#39;);<br/>container.style.height = (container.scrollHeight &gt; 199) ? &#34;200px&#34; : &#34;auto&#34;;<br/><br/>//写成函数来运行<br/>function setMaxHeight(elementId, height){<br/>var container = document.getElementById(elementId);<br/>container.style.height = (container.scrollHeight &gt; (height - 1)) ? height + &#34;px&#34; : &#34;auto&#34;;<br/>}<br/><br/>//函数示例<br/>setMaxHeight(&#39;container1&#39;, 200);<br/>setMaxHeight(&#39;container2&#39;, 500);<br/>8、100% 高度<br/><br/>在IE6下，如果要给元素定义100%高度，必须要明确定义它的父级元素的高度，如果你需要给元素定义满屏的高度，就得先给html和body定义height:100%;。<br/><br/>9、最小宽度<br/><br/>同max-height和max-width一样，IE6也不支持min-width。<br/><br/>//直接使用ID来改变元素的最小宽度<br/>var container = document.getElementById(&#39;container&#39;);<br/>container.style.width = (container.clientWidth &lt; width) ? &#34;500px&#34; : &#34;auto&#34;;<br/><br/>//写成函数来运行<br/>function setMinWidth(elementId, width){<br/>var container = document.getElementById(elementId);<br/>container.style.width = (container.clientWidth &lt; width) ? width + &#34;px&#34; : &#34;auto&#34;;<br/>}<br/><br/>//函数示例<br/>setMinWidth(&#39;container1&#39;, 200);<br/>setMinWidth(&#39;container2&#39;, 500);<br/>10、最大宽度<br/><br/>//直接使用ID来改变元素的最大宽度<br/>var container = document.getElementById(elementId);<br/>container.style.width = (container.clientWidth &gt; (width - 1)) ? width + &#34;px&#34; : &#34;auto&#34;;<br/><br/>//写成函数来运行<br/>function setMaxWidth(elementId, width){<br/>var container = document.getElementById(elementId);<br/>container.style.width = (container.clientWidth &gt; (width - 1)) ? width + &#34;px&#34; : &#34;auto&#34;;<br/>}<br/><br/>//函数示例<br/>setMaxWidth(&#39;container1&#39;, 200);<br/>setMaxWidth(&#39;container2&#39;, 500);<br/>11、双边距Bug<br/><br/>当元素浮动时，IE6会错误的把浮动方向的margin值双倍计算。个人觉得较好解决方法是避免float和margin同时使用。<br/><br/>12、清除浮动<br/><br/>如果你想用div(或其他容器)包裹一个浮动的元素，你会发现必须给div(容器)定义明确的height、width、overflow之中一个属性（除了auto值）才能将浮动元素严实地包裹。<br/><br/>#container {border:1px solid #333; overflow:auto; height:100%;}<br/>#floated1 {float:left; height:300px; width:200px; background:#00F;}<br/>#floated2 {float:right; height:400px; width:200px; background:#F0F;}<br/>更多：<a href="http://www.twinsenliang.net/skill/20090413.html" target="_blank" rel="external">http://www.twinsenliang.net/skill/20090413.html</a><br/><br/>13、浮动层错位<br/><br/>当内容超出外包容器定义的宽度时，在IE6中容器会忽视定义的width值，宽度会错误地随内容宽度增长而增长。<br/><br/>浮动层错位问题在IE6下没有真正让人满意的解决方法，虽然可以使用overflow:hidden;或overflow:scroll;来修正， 但hidden容易导致其他一些问题，scroll会破坏设计；JavaScript也没法很好地解决这个问题。所以建议是一定要在布局上避免这个问题发 生，使用一个固定的布局或者控制好内容的宽度（给内层加width）。<br/><br/>14、躲猫猫bug<br/><br/>在IE6和IE7下，躲猫猫bug是一个非常恼人的问题。一个撑破了容器的浮动元素，如果在他之后有不浮动的内容，并且有一些定义了:hover的链接，当鼠标移到那些链接上时，在IE6下就会触发躲猫猫。<br/><br/>解决方法很简单：<br/>1.在（那个未浮动的）内容之后添加一个&lt;span style=&#34;clear: both;&#34;&gt; &lt;/span&gt;<br/>2.触发包含了这些链接的容器的hasLayout，一个简单的方法就是给其定义height:1%;<br/><br/>15、绝对定位元素的1像素间距bug<br/><br/>IE6下的这个错误是由于进位处理误差造成（IE7已修复），当绝对定位元素的父元素高或宽为奇数时，bottom和right会产生错误。唯一的解决办法就是给父元素定义明确的高宽值，但对于液态布局没有完美的解决方法。<br/><br/>16、3像素间距bug<br/><br/>在IE6中，当文本(或无浮动元素)跟在一个浮动的元素之后，文本和这个浮动元素之间会多出3像素的间隔。<br/>给浮动层添加 display:inline 和 -3px 负值margin<br/>给中间的内容层定义 margin-right 以纠正-3px<br/><br/>17、IE下z-index的bug<br/><br/>在IE浏览器中，定位元素的z-index层级是相对于各自的父级容器，所以会导致z-index出现错误的表现。解决方法是给其父级元素定义z-index，有些情况下还需要定义position:relative。<br/><br/>18、Overflow Bug<br/><br/>在IE6/7中，overflow无法正确的隐藏有相对定位position:relative;的子元素。解决方法就是给外包容器.wrap加上position:relative;。<br/><br/>19、横向列表宽度bug<br/><br/>如果你使用float:left;把&lt;li&gt;横向摆列，并且&lt;li&gt;内包含的&lt;a&gt;（或其他）触发了 hasLayout，在IE6下就会有错误的表现。解决方法很简单，只需要给&lt;a&gt;定义同样的float:left;即可。<br/><br/>20、列表阶梯bug<br/><br/>列表阶梯bug通常会在给&lt;li&gt;的子元素&lt;a&gt;使用float:left;时触发，我们本意是要做一个横向的列表(通常 是导航栏)，但IE却可能呈现出垂直的或者阶梯状。解决办法就是给&lt;li&gt;定义float:left;而非子元素&lt;a&gt;，或者 给&lt;li&gt;定义display:inline;也可以解决。<br/><br/>21、垂直列表间隙bug<br/><br/>当我们使用&lt;li&gt; 包含一个块级子元素时，IE6(IE7也有可能)会错误地给每条列表元素（&lt;li&gt;）之间添加空隙。<br/><br/>解决方法：把&lt;a&gt;flaot并且清除float来解决这个问题；另外一个办法就是触发&lt;a&gt;的hasLayout（如定 义高宽、使用zoom:1;）；也可以给&lt;li&gt; 定义display:inline;来解决此问题；另外还有一个极有趣的方法，给包含的文本末尾添加一个空格。<br/><br/>22、IE6中的:hover<br/><br/>在IE6中，除了(需要有href属性)才能触发:hover行为，这妨碍了我们实现许多鼠标触碰效果，但还是有一些法子是可以解决它的。最好是不要用:hover来实现重要的功能，仅仅只用它来强化效果。<br/><br/>23、IE6调整窗口大小的 Bug<br/><br/>当把body居中放置，改变IE浏览器大小的时候，任何在body里面的相对定位元素都会固定不动了。解决办法：给body定义position:relative;就行了。<br/><br/>24、文本重复Bug<br/><br/>在IE6中，一些隐藏的元素（如注释、display:none;的元素）被包含在一个浮动元素里，就有可能引发文本重复bug。解决办法：给浮动元素添加display:inline;。<br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.woaicss.com/article/hack/hackk.htm" /> 
	  <id>http://www.woaicss.com/default.asp?id=198</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[实现大DIV套小DIV，小DIV随意调整大小，永远居中在大DIV内]]></title>
	  <author>
		 <name>樱花下的吻</name>
		 <uri>http://www.woaicss.com/</uri>
		 <email>wo-ai-niqq@163.com</email>
	  </author>
	  <category term="" scheme="http://www.woaicss.com/default.asp?cateID=3" label="Div+css基础" /> 
	  <updated>2010-06-05T22:03:37+08:00</updated>
	  <published>2010-06-05T22:03:37+08:00</published>
		  <summary type="html"><![CDATA[&lt;div style=&#34;display:table; border:1px solid red; width:800px; height:800px;&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div style=&#34;display:table-cell; vertical-align:middle; &#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div style=&#34; border:1px solid o&#114;ange; width:200px; height:200px; margin:0 auto;&#34;&gt;<br/>&nbsp;&nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/><br/>&lt;/div&gt;]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.woaicss.com/article/div/197.htm" /> 
	  <id>http://www.woaicss.com/default.asp?id=197</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[Chrome总结的浏览器兼容性问题知识文库]]></title>
	  <author>
		 <name>woniu</name>
		 <uri>http://www.woaicss.com/</uri>
		 <email>wo-ai-niqq@163.com</email>
	  </author>
	  <category term="" scheme="http://www.woaicss.com/default.asp?cateID=9" label="杂七杂八" /> 
	  <updated>2010-06-03T11:03:19+08:00</updated>
	  <published>2010-06-03T11:03:19+08:00</published>
		  <summary type="html"><![CDATA[&nbsp;&nbsp; 听了Chrome的产品推广经理的报告，他们共享了chrome浏览器开发团队在对国内前40网站测试中 总结的一些兼容性问题相关文章，并且共享了这些文档。太大，没发传上来，下面是知识库的文章列表：<br/><br/><br/>浏览器兼容性问题知识库-文章列表<br/>本文列出了所有已完成的《知识库》中的文章及与其相关的报告。有关《知识库》的更多信息，请参考浏览器兼容性问题知识库-概述及文档规范。<br/>渲染相关<br/>1.&#160;&#160;&#160;&#160;width/height的作用位置的差异（及IE盒模型Bug） 孙东国★2010-03-05<br/>2.&#160;&#160;&#160;&#160;width/height的设定值可能被其内容撑大 孙东国★2010-03-05<br/>3.&#160;&#160;&#160;&#160;零高度的浮动元素可能会阻挡其兄弟浮动元素 孙东国★2010-03-05<br/>4.&#160;&#160;&#160;&#160;右浮动元素可能撑大其祖先级元素的宽度 孙东国★2010-03-10<br/>5.&#160;&#160;&#160;&#160;浮动元素宽度的shrink-to-fit算法的差异 孙东国★2010-03-12<br/>6.&#160;&#160;&#160;&#160;disabled属性作用于非表单控件元素 陆远★2010-03-12<br/>7.&#160;&#160;&#160;&#160;Firefox TEXTAREA元素rows属性Bug 陆远★2010-03-12<br/>8.&#160;&#160;&#160;&#160;文件选择控件的呈现方式 陆远★2010-03-12<br/>9.&#160;&#160;&#160;&#160;text-decoration作用于IMG元素 陆远★2010-03-12<br/>10.&#160;&#160;&#160;&#160;UL、OL、DL内包含非列表元素的处理 陆远★2010-03-19<br/>11.&#160;&#160;&#160;&#160;CSS的font-family中使用一对引号包括整个字体家族 陆远★2010-03-19<br/>12.&#160;&#160;&#160;&#160;非表格元素的noWrap属性 陆远★2010-03-19<br/>13.&#160;&#160;&#160;&#160;IE中对浮动元素上clear特性的解释错误 武利剑★2010-03-19<br/>14.&#160;&#160;&#160;&#160;固定布局下的表格宽度计算 陆远★2010-03-24<br/>15.&#160;&#160;&#160;&#160;IFRAME元素的透明问题及IE中BODY元素的默认背景色 陆远★2010-03-24<br/>16.&#160;&#160;&#160;&#160;IE6双边距Bug 陆远★2010-03-25<br/>17.&#160;&#160;&#160;&#160;水平居中元素 陆远★2010-03-25<br/>18.&#160;&#160;&#160;&#160;IE中的CSS特性（包括CSS Expression、CSS Behavior、CSS Filter，及IE专有的CSS） 陆远★2010-03-25<br/>19.&#160;&#160;&#160;&#160;IE对一些CSS2.1标准的支持缺陷 武利剑★2010-03-25<br/>20.&#160;&#160;&#160;&#160;动态伪类在各浏览器中的支持情况 陆远★2010-03-25<br/>21.&#160;&#160;&#160;&#160;各浏览器对 text-overflow 特性的支持差异 武利剑★2010-03-26<br/>22.&#160;&#160;&#160;&#160;margin特性对TABLE元素align属性的影响 陆远★2010-03-26<br/>23.&#160;&#160;&#160;&#160;IE中对于行内非替换元素的高度计算错误 武利剑★2010-03-26<br/>24.&#160;&#160;&#160;&#160;比较IE的hasLayout特性和CSS规范中的block formatting context 武利剑★2010-03-26<br/>25.&#160;&#160;&#160;&#160;定位元素z-index为默认值可能产生新的层叠上下文 丁宗秋★2010-03-26<br/>26.&#160;&#160;&#160;&#160;字体样式元素对CSS的不同影响 陆远★2010-04-01<br/>27.&#160;&#160;&#160;&#160;以size属性控制INPUT文本框或密码框宽度时的差异 陆远★2010-04-01<br/>28.&#160;&#160;&#160;&#160;各浏览器中密码框掩码差异 陆远★2010-04-01<br/>29.&#160;&#160;&#160;&#160;IE处理中文全角空格时的差异 陆远★2010-04-01<br/>30.&#160;&#160;&#160;&#160;IFRAME的scrolling属性与子页面滚动条的关系 陆远★2010-04-02<br/>31.&#160;&#160;&#160;&#160;使用零高度或宽度隐藏iframe 周涛★2010-04-02<br/>32.&#160;&#160;&#160;&#160;Firefox浏览器对table中绝对定位元素包含块的判定错误及其影响 武利剑★2010-04-02<br/>33.&#160;&#160;&#160;&#160;contentEditable的设置可能会失效 杨稍辉★2010-04-02a_43<br/>34.&#160;&#160;&#160;&#160;fieldset元素被当成inline-block渲染 周涛★2010-04-02<br/>35.&#160;&#160;&#160;&#160;CSS选择器命名规则 丁宗秋★2010-04-02<br/>36.&#160;&#160;&#160;&#160;A标签常见兼容性问题 丁宗秋★2010-04-02<br/>37.&#160;&#160;&#160;&#160;IE中不合理的overflow-x和overflow-y组合 武利剑★2010-04-02<br/>38.&#160;&#160;&#160;&#160;IE6绝对定位元素无法根据其四个方向的偏移量自动计算尺寸 陆远★2010-04-01<br/>39.&#160;&#160;&#160;&#160;IE中浮动方向的外边可能出现在其容器浮动方向外边之外 陆远★2010-04-02<br/>40.&#160;&#160;&#160;&#160;Firefox的滚动条可能会消失 陆远★2010-04-02<br/>41.&#160;&#160;&#160;&#160;word-wrap在各浏览器中差异 周涛★2010-04-07<br/>42.&#160;&#160;&#160;&#160;各浏览器对align=&#34;middle&#34;的理解 陆远★2010-04-07<br/>43.&#160;&#160;&#160;&#160;HTML borderColor属性渲染差异 陆远★2010-04-07<br/>44.&#160;&#160;&#160;&#160;无SRC的IMG元素占位 杨稍辉★2010-04-07<br/>45.&#160;&#160;&#160;&#160;IE特有的 writing-mode 特性 武利剑★2010-04-07<br/>46.&#160;&#160;&#160;&#160;P元素默认margin属性 杨稍辉★2010-04-07<br/>47.&#160;&#160;&#160;&#160;IE中可设置的滚动条样式 武利剑★2010-04-07<br/>48.&#160;&#160;&#160;&#160;x<br/>49.&#160;&#160;&#160;&#160;x<br/>50.&#160;&#160;&#160;&#160;x<br/><br/>脚本相关<br/>1.&#160;&#160;&#160;&#160;系统剪贴板的使用 陆远★2010-03-19<br/>2.&#160;&#160;&#160;&#160;获取页面滚动条的高度 陆远★2010-03-19<br/>3.&#160;&#160;&#160;&#160;window.onresize触发条件 陆远★2010-03-19<br/>4.&#160;&#160;&#160;&#160;offsetParent在各浏览器下的差异 蔡美纯★2010-03-19<br/>5.&#160;&#160;&#160;&#160;被透明元素遮挡的元素是否还能响应鼠标事件 丁宗秋★2010-03-24<br/>6.&#160;&#160;&#160;&#160;HTML中的对话框 陆远★2010-03-25<br/>7.&#160;&#160;&#160;&#160;客户端数据持久化 丁宗秋★2010-03-25<br/>8.&#160;&#160;&#160;&#160;客户端浏览器类型及版本的判别 丁宗秋★2010-03-26<br/>9.&#160;&#160;&#160;&#160;使用window.close方法可能无法关闭窗口 丁宗秋★2010-03-26<br/>10.&#160;&#160;&#160;&#160;获取dom节点时空白节点忽略与否在各浏览器的差异 蔡美纯★2010-04-02<br/>11.&#160;&#160;&#160;&#160;Javascript变量命名问题 周涛★2010-04-02<br/>12.&#160;&#160;&#160;&#160;Firefox对动态插入代码的支持缺陷 武利剑★2010-04-02<br/>13.&#160;&#160;&#160;&#160;DOM获取焦点 杨稍辉★2010-04-02<br/>14.&#160;&#160;&#160;&#160;各浏览器中的鼠标滚轮滚动事件 武利剑★2010-04-02<br/>15.&#160;&#160;&#160;&#160;document.write引入js文件的兼容性问题 蔡美纯★2010-04-02<br/>16.&#160;&#160;&#160;&#160;Date对象在各浏览器下的差异 蔡美纯★2010-04-02<br/>17.&#160;&#160;&#160;&#160;各浏览器对加入收藏夹的支持 周涛★2010-04-02<br/>18.&#160;&#160;&#160;&#160;DOMImplementation和DocumentLS接口在各浏览器下的支持差异 丁宗秋★2010-04-02<br/>19.&#160;&#160;&#160;&#160;各浏览器对从集合对象(Collection)中取DOM元素方式的支持差异 武利剑★2010-04-02<br/>20.&#160;&#160;&#160;&#160;操作style属性及STYLE元素 陆远★2010-04-02<br/>21.&#160;&#160;&#160;&#160;HTMLDocument接口在各浏览器中对上下文环境依赖的差异 周涛★2010-04-07<br/>22.&#160;&#160;&#160;&#160;SCRIPT元素常见兼容性问题 丁宗秋★2010-04-07<br/>23.&#160;&#160;&#160;&#160;ActiveXObject创建的Automation对象的属性及方法大小写不敏感 陆远★2010-04-07<br/>24.&#160;&#160;&#160;&#160;各浏览器对于函数声明的差异 蔡美纯★2010-04-07<br/>25.&#160;&#160;&#160;&#160;各浏览器对scroll事件的支持情况 武利剑★2010-04-07<br/>26.&#160;&#160;&#160;&#160;IE对onreadystatechange事件的扩充 蔡美纯★2010-04-07<br/>27.&#160;&#160;&#160;&#160;TABLE元素的cells属性 蔡美纯★2010-04-07<br/>28.&#160;&#160;&#160;&#160;IE的默认行为homePage 丁宗秋★2010-04-07<br/>29.&#160;&#160;&#160;&#160;x<br/>30.&#160;&#160;&#160;&#160;x<br/><br/>其他类别<br/>1.&#160;&#160;&#160;&#160;IE未按预期方式处理content-type为text/plain的内容 陆远★2010-03-12<br/>2.&#160;&#160;&#160;&#160;各浏览器对content-type为 application/rss+xml的响应头的处理 陆远★2010-03-12<br/>3.&#160;&#160;&#160;&#160;各浏览器对表单提交的键值对处理 陆远★2010-03-12<br/>4.&#160;&#160;&#160;&#160;使用META元素控制页面跳转 陆远★2010-03-12<br/>5.&#160;&#160;&#160;&#160;IE浏览器中特有的条件注释 武利剑★2010-03-24<br/>6.&#160;&#160;&#160;&#160;IE中的alt属性可能被当作提示信息被使用 陆远★2010-04-02<br/>7.&#160;&#160;&#160;&#160;各浏览器下的拼写检查特性 丁宗秋★2010-04-02<br/>8.&#160;&#160;&#160;&#160;IE特有的BGSOUND标签 蔡美纯★2010-04-02<br/>9.&#160;&#160;&#160;&#160;服务器端返回html代码与浏览器相关 杨稍辉★2010-04-02<br/>10.&#160;&#160;&#160;&#160;IE6专有特性图像工具栏 丁宗秋★2010-04-02<br/>11.&#160;&#160;&#160;&#160;CSS中长度类型的值缺失单位 陆远 + 周涛★2010-04-02<br/>12.&#160;&#160;&#160;&#160;IE下专有的JScript.Encode 丁宗秋★2010-04-02<br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.woaicss.com/article/works/chrome1.htm" /> 
	  <id>http://www.woaicss.com/default.asp?id=196</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[轻松制作CSS圆角]]></title>
	  <author>
		 <name>樱花下的吻</name>
		 <uri>http://www.woaicss.com/</uri>
		 <email>wo-ai-niqq@163.com</email>
	  </author>
	  <category term="" scheme="http://www.woaicss.com/default.asp?cateID=3" label="Div+css基础" /> 
	  <updated>2010-06-02T13:51:43+08:00</updated>
	  <published>2010-06-02T13:51:43+08:00</published>
		  <summary type="html"><![CDATA[<p>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;<br />
&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />
&lt;title&gt;无标题文档&lt;/title&gt;<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
div{ background:green;}<br />
.top,.bottom{ display:block; background:white;}<br />
b{ display:block; height:1px; background:green; overflow:hidden;}<br />
.one{ margin:0 5px;}<br />
.two{ margin:0 3px;}<br />
.three{ margin:0 2px;}<br />
.four{ margin:0 1px; }</p>
<p>&lt;/style&gt;<br />
&lt;/head&gt;</p>
<p>&lt;body&gt;<br />
&lt;div&gt;<br />
&nbsp;&lt;div class=&quot;top&quot;&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&lt;b class=&quot;one&quot;&gt;&lt;/b&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;b class=&quot;two&quot;&gt;&lt;/b&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;b class=&quot;three&quot;&gt;&lt;/b&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;b class=&quot;four&quot;&gt;&lt;/b&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br />
&nbsp;这里是一些文字<br />
&nbsp;&lt;div class=&quot;bottom&quot;&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&lt;b class=&quot;four&quot;&gt;&lt;/b&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;b class=&quot;three&quot;&gt;&lt;/b&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;b class=&quot;two&quot;&gt;&lt;/b&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;b class=&quot;one&quot;&gt;&lt;/b&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
&nbsp;</p>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.woaicss.com/article/div/195.htm" /> 
	  <id>http://www.woaicss.com/default.asp?id=195</id>
  </entry>	
		
</feed>
