css 高宽判断

/× expression(this.width > 100 && this.width > this.height ? 100: true);
 height: expression(this.height > 100 ? 100: true);
 expression(this.width > 100 ? 100: true);×/

====================
IE6最小高度
.min_height{
  min-height:200px;
  _height:expression(this.scrollHeight < 200 ? "200px" : "auto");
}
--------------------------------
IE6最大高度
.max_height{
  max-height:400px;
  _height:expression(this.scrollHeight > 400 ? "400px" : "auto");
}
--------------------------------
IE6最小宽度
max- 600px;
 _expression(document.body.clientWidth > 600 ? "600px" : "auto");
 /*_expression(document.body.clientWidth < 300 ? "300px" : "auto"); 这是min-width */
--------------------------------
IE6最大最小宽度
.min_and_max_width{
  min-300px;
  max-600px;
  _ expression(
    document.body.clientWidth < 300 ? "300px" :
       ( document.body.clientWidth > 600 ? "600px" : "auto")
  );
}
--------------------------------
IE6最大最小高度
.min_and_max_height{
  min-height:200px;
  max-height:400px;
  _height: expression(
    this.scrollHeight < 200 ? "200px" :
      ( this.scrollHeight > 400 ? "400px" : "auto")
  );
}
====================

现在最大高度,按比例缩小

 max-height:1000px;
max-1000px;
height: expression(this.height > 1000 ? 1000: true);

原文地址:https://www.cnblogs.com/hr2014/p/3824725.html