开发者

What does *width:auto mean in CSS?

Can anyone please tell me what does

*width:auto;

mean in css?

For example:开发者_StackOverflow中文版

div.ReportingControls dd
{
    width:450px;
    *width:auto;
}

Thanks


This is a CSS hack for IE. Only IE7 and below will use width auto, instead of 450px;.

Per Microsoft use conditional comments instead of this kind of hack.


It's a CSS hack to target Internet Explorer 7 and below. And it's not recommended to use in the real world.


I think it is some kind of trick for browser compatibility as explained in this blog

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜