常用的css初始化

分类:前端来源:站内 最近更新:2017-08-19 20:26:22浏览:236留言:0

常用的css初始化

部分样式可以调整,通用版如下:

a,article,aside,b,body,canvas,div,dl,dt,footer,form,h1,h2,h3,h4,h5,h6,header,html,i,iframe,img,input,label,li,menu,nav,ol,output,p,pre,q,s,section,small,span,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul{margin:0;padding:0;border:0;}
dl,ol,ul,dd,li{list-style-type:none;}
a,area,a:focus,a:active,a:hover,button,input{outline:0;blr:expression(this.onFocus=this.blur())}
img{border:0;vertical-align:middle;-ms-interpolation-mode:bicubic}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}
input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}
table{border-collapse:collapse;border-spacing:0}

/* HTML5 display-role reset for older browsers */
article,aside,details,figcaption,figure,footer,header,menu,nav,section{display:block}
blockquote,q{quotes:none}
blockquote:after,blockquote:before,q:after,q:before{content:none}

/* custom */
*{box-sizing: border-box;}
body{-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
body,button,input,select,textarea{font: 14px/1.5 "Microsoft YaHei","微软雅黑",Helvetica,Arial,\5b8b\4f53,sans-serif;}
a{ text-decoration: none; }


3

发表评论

评论列表(0)

  • 暂时没有留言
热门