+ -
当前位置:首页 → 问答吧 → 带下划线的属性定义,请问是什么含义?

带下划线的属性定义,请问是什么含义?

时间:2011-10-02

来源:互联网

一个例子中有
html { height:100%; overflow:hidden; background:#f60;}
这样的CSS属性,然后过几行又来了一个
html { _padding:70px 10px;}
其它也有,比如
.top { _height:50px; _margin-top:-60px; _margin-bottom:10px; _position:relative; _top:0; _right:0; _bottom:0; _left:0;}

发现与上面不同的是它们的属性名称都多了个下划线
CSS教程中没有学过这样的内容……

作者: kk86868058   发布时间: 2011-10-02

下划线,有的浏览器能识别,有的则不能,是用来进行CSS Hack时使用的
参见
http://sofree.cc/ie6-ie7-ie8-firefox-css-hack/

作者: net_lover   发布时间: 2011-10-02

更多的知识你可以搜索

css hack

作者: net_lover   发布时间: 2011-10-02

CSS hacks,加下划线前缀的定义只有IE6下有效。
http://www.wangzhengdong.com/blog/ie6-ie7-ie8-firefox-chrome-safari-css-hack.html

作者: T5500   发布时间: 2011-10-02

热门下载

更多