新增HTML5标签cssReset_蓝戒的博客


新增HTML5标签cssReset

为了确保各个浏览器初始化时页面布局一致,需要使用css在重置以下页面标签:

@charset "utf-8";
body, h1, h2, h3, h4, h5, h6, hr, p, dl, dt, dd, ul, ol, th, td, pre, blockquote, fieldset, lengend, input, button, textarea, form{margin: 0; padding: 0;}
body, input, button, textarea, select{font-size:12px; font-family: "Microsoft YaHei", Helvetica, Tahoma, Arial, sans-serif;}

h1, h2, h3, em, i, th, caption, cite, code, address{font-style: normal; font-weight: normal;}
ul, ol{list-style: none;}
img, fieldset{border: 0 none;}
input, textarea{outline: none;}
table{border-collapse: collapse; border-spacing: 0;}
button, input, select, label{vertical-align:middle;}

a{color: #333; outline: none; text-decoration: none;}
a:focus{outline: none;}
a:hover{text-decoration: underline;}
a:active{star:expression(this.onfocus=this.blur());}

.clearfix{_zoom:1; /*height:1%;*/}
.clearfix:after{content:""; clear: both; display:block;}
/*html5新增标签css reset*/
header, hgroup, nav, menu, main, section, article, summary, details, aside, figure, figcaption, footer{display: block;}

本文固定链接: http://www.webzsky.com/?p=444 | 蓝戒的博客

cywcd
该日志由 cywcd 于2015年05月02日发表在 html5, 网页兼容性 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: 新增HTML5标签cssReset | 蓝戒的博客

新增HTML5标签cssReset:等您坐沙发呢!

发表评论


快捷键:Ctrl+Enter
来自的朋友,欢迎您 点击这里 订阅我的博客 o(∩_∩)o~~~
×