菜单 eyoucms模板网

站长经验总结
每个浏览器默认的属性不同,像谷歌浏览器不设置的话,默认每个元素是有外边距margin的,有的浏览器列表还会带上序号,有的浏览器就没有。所以为了让所有浏览器都一致,在写CSS开始前,我们都需要用CSS把全部标签属性重置一次,eyhtml.com自用的重

CSS全部标签属性重置语法

发布时间:2021-04-10 23:48:42
点击次数:600
复制本文链接

(图1)

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

所以为了让所有浏览器都一致,在写CSS开始前,我们都需要用CSS把全部标签属性重置一次,eyhtml.com自用的重置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);}


收藏

相关文章

加载中~
模板购买咨询
定制仿站咨询
24小时客服
18030990768


模板购买咨询
定制仿站咨询
24小时客服
18030990768