遇到一个大坑,参数设置好之后,元素位置发生偏移。

这里的字本应该在灰色条中间才对。不知道为什么会跑到下面来。尝试设置各种参数不见效!
后来:
原来如此!一个巨大的坑!怎么设置css reset呢?
代码如下:1234567891011/*CSS reset*/body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {margin:0;padding:0;}table {border-collapse:collapse;border-spacing:0;}fieldset,img {border:0}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}ol,ul {list-style:none}caption,th {text-align:left}h1,h2,h3,h4,h5,h6 {font-size:100%;font-weight:normal}q:before,q:after {content:''}abbr,acronym { border:0}
哈哈,不掉坑不知道!这个坑掉得值,又学到一招!/剪刀手~