IE6的最小/最大宽度固定

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IE6的最小/最大宽度固定相关的知识,希望对你有一定的参考价值。

javascript expression in css to allow for min/max widths. replaces the min-width, max-width that works for IE6.
  1. #content {
  2. height: 75px;
  3. background-color: #000;
  4. color: #fff;
  5. width: expression(document.body.clientWidth < 742? "740px" : document.body.clientWidth > 1202? "1200px" : "auto");
  6. min-width: 740px;
  7. max-width: 1200px;
  8. }

以上是关于IE6的最小/最大宽度固定的主要内容,如果未能解决你的问题,请参考以下文章