質問

  min-width: 160px;
  max-width: 220px;
  _width: 160px;

I know it's some version of IE, 6, 7 or 8. But can't figure out which one...

役に立ちましたか?

解決

MSIE 5+ will process the tag as if there were no underscore, whereas other browsers will ignore that tag completely.

See http://wellstyled.com/css-underscore-hack.html

他のヒント

This smells like IE6. As far as I remember, IE7 added support for min- and max-width.

Of course this solution makes it static for IE5+6, and dynamic for other browsers.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top