您的位置:首页 > Web前端 > CSS

div+css实现Firefox与IE6兼容的手形鼠标指针

2007-09-23 09:51 661 查看

div+css实现Firefox与IE6兼容的手形鼠标指针

[示例代码]

<html>
<body>
<div style="cursor: hand;">
显示手形鼠标指针,IE6 only
</div>
<div style="cursor: pointer;">
显示手形鼠标指针,Firefox IE6兼容
</div>
</body>
</html>

[div+css关键词]

div css

[div+css重要工具]

Internet Explorer Developer Toolbar, http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en

[div+css的常见问题]

较验div+css格式,http://validator.w3.org/
div+css的margin缩写方式
div+css的padding缩写方式

[div+css的浏览器兼容问题]

水平居中,Firefox使用margin-left: auto; margin-right: auto; IE6 使用text-align: center;
垂直居中,Firefox中使用display: table-cell; vertical-align: middle;可以实现div垂直居中,而IE6中则需要借助IE6中css的特点实现垂直居中。
!important标记,Firefox支持!important标记,IE6忽略!important标记
手形鼠标指针,使用cursor: pointer;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: