|
  
- 帖子
- 38
- 积分
- 71
- 注册时间
- 2006-5-27
- 最后登录
- 2008-3-13
|
楼主
发表于 2007-11-5 20:29
| 只看该作者
!important标记的使用方法
| !important标记的使用方法
Firefox支持!important标记,而IE6忽略!important标记,因此可以使用!important标记区别Firefox和IE6。
[示例代码]
firefox中显示为黑色文字,IE6中显示为白色文字
firefox中显示为白色文字,IE6中显示为黑色文字
[div+css重要工具]
Internet Explorer Developer Toolbar, http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en
[div+css的浏览器兼容问题]
水平居中,Firefox使用margin-left: auto; margin-right: auto; IE6 使用text-align: center;
!important标记,Firefox支持!important标记,IE6忽略!important标记 |
|