小编给大家分享一下css中如何能清除浏览器默认样式,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
	  css清除浏览器默认样式(代替*{})
	  将代码放入css文件,使用link引入。
	  /*v2.0|20110126
	  http://meyerweb.com/eric/tools/css/reset/
	  License:none(publicdomain)
	  */
	  html,body,div,span,applet,object,iframe,
	  h2,h3,h4,h5,h6,h7,p,blockquote,pre,
	  a,abbr,acronym,address,big,cite,code,
	  del,dfn,em,img,ins,kbd,q,s,samp,
	  small,strike,strong,sub,sup,tt,var,
	  b,u,i,center,
	  dl,dt,dd,ol,ul,li,
	  fieldset,form,label,legend,
	  table,caption,tbody,tfoot,thead,tr,th,td,
	  article,aside,canvas,details,embed,
	  figure,figcaption,footer,header,hgroup,
	  menu,nav,output,ruby,section,summary,
	  time,mark,audio,video{
	  margin:0;
	  padding:0;
	  border:0;
	  font-size:100%;
	  font:inherit;
	  vertical-align:baseline;
	  }
	  /*HTML5display-roleresetforolderbrowsers*/
	  article,aside,details,figcaption,figure,
	  footer,header,hgroup,menu,nav,section{
	  display:block;
	  }
	  body{
	  line-height:1;
	  }
	  ol,ul{
	  list-style:none;
	  }
	  blockquote,q{
	  quotes:none;
	  }
	  blockquote:before,blockquote:after,
	  q:before,q:after{
	  content:'';
	  content:none;
	  }
	  table{
	  border-collapse:collapse;
	  border-spacing:0;
	  }
以上是“css中如何能清除浏览器默认样式”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注天达云行业资讯频道!