页面CSS样式重置啦文章内容里面地所有格式,该怎么做?

html-css014

页面CSS样式重置啦文章内容里面地所有格式,该怎么做?,第1张

这样看行……把你重置在这个区域内再恢复次。复制内容到剪贴板代码:.FCKeditor

h1,.FCKeditor

h2,.FCKeditor

h3,.FCKeditor

h4,.FCKeditor

h5,.FCKeditor

h6

{

margin:0.5em

auto

font-weight:bold}

我还是建议你使用全局选择符来清除 *{margin:0padding:0}当进行此操作后,对其它的HTML标签没太大影响了,而且更加方便布局,因为不同浏览器对不同的标签margin和padding默认值是不同的。但是<p>标答除外,这也是需要注意的,当使用*{margin:0padding:0}后,还要恢复<p>标签的默认padding和margin(CSS:p{margin:autoheight:auto}),否则看不到段落效果,行间距没有效果。

html{color:#000background:#FFF}

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0padding:0}

table{border-collapse:collapseborder-spacing:0}

fieldset,img{border:0}

address,caption,cite,code,dfn,em,strong,th,var{font-style:normalfont-weight:400}

li{list-style:none}

caption,th{text-align:left}

h1,h2,h3,h4,h5,h6{font-size:100%font-weight:400}

q:before,q:after{content:''}

abbr,acronym{border:0font-variant:normal}

sup{vertical-align:text-top}

sub{vertical-align:text-bottom}

input,textarea,select{font-family:inheritfont-weight:inheritfont-size:100%}

legend{color:#000}

//Yahoo css reset 3.0版本

这是我使用了四年的CSS Reset,你可以适当的根据自己的项目添加一些自己的.

希望能够采纳 .^_^.