欢迎您光临丑恰网,本站秉承服务宗旨 履行“站长”责任,销售只是起点 服务永无止境!

CSS全部标签属性重置语法

每个浏览器默认的属性不同,像谷歌浏览器不设置的话,默认每个元素是有外边距margin的,有的浏览器列表还会带上序号,有的浏览器就没有。

所以为了让所有浏览器都一致,在写CSS开始前,我们都需要用CSS把全部标签属性重置一次,本站自用的重置CSS代码分享给大家。

*{padding:0px;margin:0px;box-sizing:border-box;}
h1,h2,h3,h4,h5{font-weight:normal;}
ul,ol,dl,li{list-style:none;}
input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;*font-size:100%;}
input{outline:none;background:none;}input::-ms-clear{display:none;}input::-ms-reveal{display:none;}input[type=text]::-ms-clear{display:none;}
textarea{resize:none;}
table{font-size:inherit;border-collapse:collapse;border-spacing:0;}
img,input,button{border:0px;}:focus{outline:0;}
a:link,a:visited{text-decoration:none;}
::-webkit-scrollbar{width:5px;height:5px;}
::-webkit-scrollbar-thumb{min-height:28px;padding-top:100;background-color:rgba(0,0,0,0.2);
-webkit-background-clip:padding-box;background-clip:padding-box;border-radius:5px;-webkit-box-shadow:inset 1px 1px 0 rgba(0,0,0,0.1),inset 0 -1px 0 rgba(0,0,0,0.07);}

 

  • 22913会员总数(位)
  • 2518资源总数(个)
  • 09本周发布(个)
  • 02 今日发布(个)
  • 1811稳定运行(天)

升级VIP尊享更多特权立即升级