给大家分享一个实用的reset.css

在一个web项目中,reset.css可以称为复位(重置)样式,这个很重要,它的作用在于使您的主题适合各种浏览器。让不同浏览器的用户享受相同的界面效果!对于大型的门户网站来说这个很重要!
下面,给大家分享一个实用的reset.css,
html,body{color:#000;background:#FFF;font-family:verdana, “ms song”, 宋体; }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;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:”;}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}.clear{clear:both;}
如果大家会一些css的话,建议自己按照自己项目的要求来写,那样就不会出现后期不兼容的现象!


本站文章欢迎转载。转载请注明:转载自迷失曾经谢谢!
原文链接地址:给大家分享一个实用的reset.css Tags:

热门网购