trswcm吧 关注:32贴子:49
  • 1回复贴,共1

[草案] IE 7.0 兼容方案辑

取消只看楼主收藏回复

1. <input> 高度设置除了 height 还需要设置 line-height。
2. 避免使用 <select> 元素,因为 WebKit 浏览器不能完全支持它的样式。
3. IE 7 不支持 table-cell 设置,可以用 float 来解决。
4. 处理 <li> 中的 float 跳行问题,应该要把需要 float 的内容置前。
5. 为了向下兼容 IE 7, box-sizing 应该是 border-box。
6. IE 9 基本上很完美了,不过为了免去半调子的 IE 8 的兼容调试,可以让 IE 8 模拟 IE 7。
写法: <!--[if lt IE 8]><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><![endif]-->


1楼2014-03-12 20:07回复
    7. IE 11 中 $.browser.msie 无法识别的解决方案if (!!navigator.userAgent.match(/Trident\/7\./))
    return "ie"; 8. onpropertychange 存在中文兼容问题,用 keyup。


    2楼2014-03-18 14:32
    回复