Вопрос

  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