body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td {
body
td,th,caption
h1, h2, h3, h4, h5, h6
address, caption, cite, code, dfn, em, strong, th, var
}
a
a:hover
img
ol,ul,li
input, textarea, select, button
table
html
overflow-y:
}
.clearfix:after
content:
}
.clearfix
=====================ie常见兼容问题汇总============================
1、有float+margin 导致双边距问题。
解决方案:加入ie6、7下特有css样式 {float:left;margin:10px;*display:inline}
2、ie8及以上、google等兼容 display:inline-block 达到 float 效果,单ie6、ie7不兼容
解决方案:{display:inline-block;*float:left;*display:inline}
注明(hack写法):
*display:inline; 表示在ie6、7下作用;
_display:inline; 表示仅在ie6下作用;
3、透明度兼容
- .transparent_class {
- filter:alpha(opacity=50);
- -moz-opacity:0.5;
- -khtml-opacity: 0.5;
- opacity: 0.5;
- }