height:auto !important; height:500px; max-height:500px; overflow:hidden;

1、IE6不识别max-height:500px和height:auto !important这两句,超过500px(也就是我们所希望的最大高度)后的内容将自动以藏;

2、IE7及其他标准浏览器全部识别,所以有期望的效果。

 

相关文章:

  • 2021-06-20
  • 2021-08-11
  • 2021-09-23
  • 2021-07-25
  • 2022-12-23
  • 2021-10-14
  • 2021-10-30
猜你喜欢
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案