开发者

What does *width:auto mean in CSS?

开发者 https://www.devze.com 2023-01-05 15:46 出处:网络
Can anyone please tell me what does *width:auto; mean in css? For example:开发者_StackOverflow中文版

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

精彩评论

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