<html>
<head>
</head>
<body>
<div>
非CSS的cellSpacing实现
</div>
<table cellSpacing="10">
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
<div>
用CSS实现时,Firefox中支持border-spacing,而IE不支持。
</div>
<table style="border-spacing: 10px;">
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
<div>
用CSS实现时,IE不直接支持,但是可以借助于expression实现,而Firefox不支持。
</div>
<table style="border-spacing: (this.cellSpacing=10);">
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
<div>
同时使用时,可以实现兼容Firefox和IE的cellSpacing效果。
</div>
<table style="border-spacing: 10px; border-spacing: (this.cellSpacing=10);">
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
</body>
</html>
The W3C Markup Validation Service:, http://validator.w3.org/
div+css使用backgroundRepeat样式设置背景图片的显示方式, http://msdn2.microsoft.com/en-us/library/ms530721.aspx
page-break-before设置打印分布符
url()指示符, http://www.w3.org/TR/CSS21/syndata.html#value-def-uri
!important规则, http://www.w3.org/TR/CSS21/cascade.html#important-rules
table中直接输入的文字和其他标记设置不同的颜色
CSS标准中级联的文档, http://www.w3.org/TR/CSS21/cascade.html#cascade
使用word-wrap设置自动折行, 仅对IE有效
<li style="overflow:hidden">在Firefox下会丢失左侧的圆点
Internet Explorer的CSS参考资料, http://msdn2.microsoft.com/en-us/library/ms531209.aspx
用CSS实现cellSpacing属性效果, border-spacing: 10px; border-spacing: expression(this.cellSpacing=10);
4.3.2 Lengths长度, http://www.w3.org/TR/CSS21/syndata.html#length-units
边距属性, http://www.w3.org/TR/CSS21/box.html#propdef-margin-top
8.5 Border properties边框属性, http://www.w3.org/TR/CSS21/box.html#border-properties
使用OPTGROUP对SELECT中的OPTION分组
nowrap标记设置不自动折行, http://www.w3.org/TR/1998/REC-html40-19980424/struct/tables.html#adef-nowrap
leftmargin设置页面左边距, topmargin设置页面上边距
disabled属性, http://msdn2.microsoft.com/en-us/library/ms533732.aspx
About Font Embedding:关于字体嵌入, http://msdn2.microsoft.com/en-us/library/ms533034.aspx
联系客服