视频1 视频21 视频41 视频61 视频文章1 视频文章21 视频文章41 视频文章61 推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37 推荐39 推荐41 推荐43 推荐45 推荐47 推荐49 关键词1 关键词101 关键词201 关键词301 关键词401 关键词501 关键词601 关键词701 关键词801 关键词901 关键词1001 关键词1101 关键词1201 关键词1301 关键词1401 关键词1501 关键词1601 关键词1701 关键词1801 关键词1901 视频扩展1 视频扩展6 视频扩展11 视频扩展16 文章1 文章201 文章401 文章601 文章801 文章1001 资讯1 资讯501 资讯1001 资讯1501 标签1 标签501 标签1001 关键词1 关键词501 关键词1001 关键词1501 专题2001
我的全局样式,求高手指点_html/css
2020-11-27 16:32:25 责编:小采
文档

body{margin:0 auto; font:12px/20px '宋体','arial'; background:#fff; color:#000}*{margin:0; padding:0; border:0}ul,ol,li,dl,dd,dt{list-style:none}input{font-family:Arial}em{font-style:normal}h1,h2,h3,h4,h5,h6,font{font-weight:normal}a{text-decoration:none}a:hover{text-decoration:none}a:visited{}a:active{}.f14{font-size:14px}.fb{font-weight:bold}.fi{font-style:italic}.clear{clear:both; font-size:1px; visibility:hidden}.blank7{margin:0 auto; height:7px; font-size:1px; clear:both}.container{width:960px; margin:0 auto}.container .head{height:318px; background:url(../images/head01.jpg) center top no-repeat}.content01{}.footer{}.popup{}


我的全局样式,求高手指点


回复讨论(解决方案)

单从样式看不出来太多内容。

image的border样式最好也预设下(一般为none)。

另外,我喜欢把a:hover放在a的样式最后一个,这样不受之前的visited的影响。。

background:...
最好拆分一下,例如是背景色就写background-color:...

这样更明确一些。

html /*IE6bug */{ _background-image:url(about:blank); _background-attachment:fixed;}/*reset*/div{ display:block;}body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td { padding: 0;margin: 0;}table { border-collapse: collapse; border-spacing: 0; }fieldset, img { border: 0; }address, caption, cite, code, dfn, em, strong, th, var { font-weight: normal; font-style: normal; }ol, ul { list-style: none; }caption, th { text-align: left; }h1, h2, h3, h4, h5, h6 { font-weight: normal; font-size: 100%; }q:before, q:after { content: ''; }abbr, acronym { border: 0; }/*reset*/


全局样式主要是清除 浏览器默认样式,在做设置全局样式。

看看yui.reset.css,kissy.reset.css吧。

这个大同小异,根据自己的结构,写出不同的 全局样式。

下载本文
显示全文
专题