码迷,mamicode.com
首页 > Web开发 > 详细

(转)雅虎工程师提供的css初始化示例代码

时间:2016-11-11 15:05:09      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:错误   set   button   nbsp   form   ati   border   rda   under   

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; }
body { background:#fff; color:#555; font-size:14px; font-family: Verdana, Arial, Helvetica, sans-serif; }
td,th,caption { font-size:14px; }
h1, h2, h3, h4, h5, h6 { font-weight:normal; font-size:100%; }
address, caption, cite, code, dfn, em, strong, th, var { font-style:normal; font-weight:normal;}
a { color:#555; text-decoration:none; }
a:hover { text-decoration:underline; }
img { border:none; }
ol,ul,li { list-style:none; }
input, textarea, select, button { font:14px Verdana,Helvetica,Arial,sans-serif; }
table { border-collapse:collapse; }
html {overflow-y: scroll;} 
.clearfix:after {content: "."; display: block; height:0; clear:both; visibility: hidden;}
.clearfix { *zoom:1; }

 

 

上述代码可以直接在html头文件中使用,从而避免浏览器的不兼容引起的错误

(转)雅虎工程师提供的css初始化示例代码

标签:错误   set   button   nbsp   form   ati   border   rda   under   

原文地址:http://www.cnblogs.com/zhuzhenwei918/p/6053955.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!