先记录下吧。有空整理整理。要不慢慢的都忘记了。
居中显示:
对于页面上的块级元素,只须定宽及设置margin:0 auto;即可在水平上居中,但对于浮动的元素水平居中是无效的
关于reflow :
reflow就是载入内容树(在HTML中就是DOM树)和创建或更新frame结构的响应的一种过程。要提高页面性能,其实就是避免reflow的开销。
让IE8 使用 IE7 渲染:
<meta http-equiv=”X-UA-Compatible” content=”IE=7″ />
跨浏览器重设CSS reset:
View Code
1 /* Public Css */
2 body{ font:12px/1.5 Arial, Helvetica, sans-serif;}
3 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 { margin:0; padding:0;}
4 h1,h2,h3,h4,h5,h6 { font-size:1em;}
5 address,code,caption,th,cite,dfn,em,var{font-style:normal;}
6 q:before,q:after{ content:”";}
7 table { border-collapse:collapse; border-spacing:0;}
8 caption,th{ text-align:left;}
9 ins{ text-decoration: none;}
10 del{ text-decoration: line-through;}
11 fieldset, img { border:none;}
12 legend{ display:none;}
13 input{ vertical-align:middle;}
14 ol,ul{ list-style:none;}
15 a:link,a:visited{}
16 a:hover,a:focus,a:active{}
17 .clearfix:after{ content:”"; height:0; visibility:hidden; display:block; clear:both;}
18 .clearfix{ zoom:1;}

浙公网安备 33010602011771号