什么是下划线“_”是什么意思在CSS? [英] What does an underscore "_" mean in CSS?
本文介绍了什么是下划线“_”是什么意思在CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚在CSS文件中找到以下代码段:
position:fixed;
_position:absolute;
这个下划线在第二个前面意味着什么?
>> 5.5& 6 。
所有浏览器都会显示 position:fixed
,而IE5 - 6使用 _position
,所以它显示它 absolute
。
但是注意:这个CSS不会验证!而且不适用于 IE5 / MAC
I just found the following snippet in a CSS file:
position: fixed;
_position: absolute;
What does this underline mean in front of the second position
statement?
解决方案
This is an old CSS-Hack for IE5, 5.5 & 6.
All browser will display the position:fixed
while IE5 - 6 use the _position
, so it display it absolute
.
But note: This CSS won't validate! And it won't work for IE5/MAC
这篇关于什么是下划线“_”是什么意思在CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文