日期:2014-05-17 浏览次数:20908 次
min-width:785px; width:expression(document.body.clientWidth < 800 ? "785px" : "100%" );
box {
    min-height:100px;    /*高度最小值设置为:100px*/
    height:auto !important; /*兼容FF,IE7也支持 !important标签*/
    height:100px; /*兼容ie6*/
    overflow:visible;
} #mycss {
  width:100%;
  max-width:500px;
  width:e?xpression_r_r_r(document.body.clientWidth > 500? "500px": "auto" ); }
  或是:
#mycss {
  max-width: 33em;
   width: expression_r_r_r(document.body.clientWidth > (500/12) * parseInt(document.body.currentStyle.fontSize) ? "33em" : "auto" );
  }#mycss {
  min-width: 333px;
  width: expression_r_r_r( document.body.clientWidth < 334 ? "333px" : "auto" );
  }#mycss {
   max-height: 333px;
  height: e?xpression_r_r_r( this.scrollHeight > 332 ? "333px" : "auto" )
  } #mycss { min-height: 333px; height: e?xpression_r_r_r( this.scrollHeight < 334 ? "333px" : "auto" );
  } 另外还有一种简单的方法: #a {height:auto !important; min-height:400px;}