ie兼容小知识点

1.ie的滤镜特别针对ie使用css3的使用

  (1)从css3渐变:filter: progid:DXImageTransform.Microsoft.gradient(startcolorstr=#f2f2f2,endcolorstr=#fefefc,gradientType=0); 

    //gradientType为0,则纵向渐变,为1则横向渐变

  (2)css3投影:box-shadowfilter: progid:DXImageTransform.Microsoft.Shadow(color='#969696', Direction=135, Strength=5);/*for ie6,7,8*/

    //Direction为投影的角度

2.圆角兼容的问题:对于ie6,7,8的话,要切图

3.新版11版的jQuery中不能使用toggle()

4.input标签中光标垂直不居中的解决方法:

    

  就是一句:把line-height设置为normal

  line-height: normal; /* for non-ie */
  line-height: 22px\9; /* for ie */

  这个是css hack 写法, 主要用在浏览器之间的兼容,
    \9:支持IE浏览器
    \0:支持IE8浏览器

posted @ 2014-12-05 16:44  胖了个胖胖  阅读(216)  评论(0编辑  收藏  举报