星形先行属性在CSS中意味着什么? [英] What does a star-preceded property mean in CSS?

查看:79
本文介绍了星形先行属性在CSS中意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天看着一个css文件,发现了以下规则集:

  div.with-some-class { 
display:block;
margin:0;
padding:2px 0 0 0;
* padding:1px 0 0 0;
font-size:11px;
font-weight:normal;
* line-height:13px;
color:#3D9AD0;
}

* padding和* line-height是什么意思? p>

感谢。

解决方案

这是star property hack与下划线黑客相同的行。它包括IE忽略的属性之前的垃圾(*工作到IE 7,_直到IE 6)。


I was looking at a css file today and found the following rule set:

div.with-some-class {
    display:block;                   
    margin:0;
    padding:2px 0 0 0;
    *padding:1px 0 0 0;
    font-size:11px;   
    font-weight:normal;
    *line-height:13px;
    color:#3D9AD0;
}

What does the star mean in *padding and *line-height?

Thanks.

解决方案

This is the "star property hack" along the same lines as the "underscore hack." It includes junk before the property that IE ignores (the * works up to IE 7, the _ up to IE 6).

这篇关于星形先行属性在CSS中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆