针对IE8透明度设置及一些简单的兼容问题

简单的,平时用到的兼容问题,记录下来,方便查看。

针对IE透明度:

less写法:~'alpha(opacity=75)\0', ~'alpha(opacity=75)\9';

css写法:alpha(opacity=75)\0, alpha(opacity=75)\9;

针对IE8兼容:

less写法:bacground: #f9f8f7~'\9\0';(或者任取一个)

 

background: #ffc;  /* 对firefox有效 */

*background: #ccc;  /* 对IE7有效 */

_background: #000;  /* 只对IE6有效 */

 

margin-bottom: 40px;  /* firefox的属性 */

margin-bottom: 140px\9;  /* IE6/ 7/8的属性*/

color: red\0;  /* IE8支持 */

*margin-bottom: 450px;  /* IE6/7的属性 */

 

Firefox:支持!important(IE7,IE8,Firefox,Chrome识别,IE6不能完全识别)

cursor:pointer 可以同时在IE,Firefox中显示游标手指状,hand仅IE可以

posted @ 2015-09-26 23:09  shirley_2014  阅读(734)  评论(0编辑  收藏  举报