*(星号)在CSS声明前面是什么意思? [英] What does an * (star) mean in front of a CSS declaration?
本文介绍了*(星号)在CSS声明前面是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在项目中使用Yahoo YUI库。任何人都可以帮助我理解在布局管理器CSS中遇到的以下CSS:
I'm using the Yahoo YUI libraries in a project. Can anyone help me understand the following CSS that I came across in the layout manager CSS:
我无法弄清楚*(star)在以下CSS中:
I have been unable to figure out what the * (star) does to the declarations in the following CSS:
.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd {
border:1px solid #808080;
border-bottom:none;
border-top:none;
*border-bottom-width:0;
*border-top-width:0;
background-color:#f2f2f2;
text-align:left;
}
推荐答案
只适用于旧版本的IE
*声明的样式将覆盖新的样式元素,这些样式元素只能由Od IE取消。
http://en.wikipedia.org/wiki/CSS_filter#Star_hack
This is a hack to apply styles only to older versions of IE the * declared styles will override the new style elements , that are unsuported by Od IE only. http://en.wikipedia.org/wiki/CSS_filter#Star_hack
这篇关于*(星号)在CSS声明前面是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文