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
精彩评论