簡單的,平時用到的兼容問題,記錄下來,方便查看。css
針對IE透明度:less
less寫法:~'alpha(opacity=75)\0', ~'alpha(opacity=75)\9';firefox
css寫法:alpha(opacity=75)\0, alpha(opacity=75)\9;ci
針對IE8兼容:it
less寫法:bacground: #f9f8f7~'\9\0';(或者任取一個)import
background: #ffc; /* 對firefox有效 */im
*background: #ccc; /* 對IE7有效 */margin
_background: #000; /* 只對IE6有效 */兼容
margin-bottom: 40px; /* firefox的屬性 */poi
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能夠