去掉html标签默认的样式

前端同鞋在写ui给的页面过程中,有的场景可能会受html标签默认样式影响,所以有些时候需要去掉默认样式

html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}
body{font:14px "\5b8b\4f53",sans-serif;background:#f9f9f9;height:100%;}
img{border:none;}
em,i{font-style:normal;}
ul,ol,li{list-style:none;}
table {border-collapse:collapse;border-spacing:0;}
h1,h2,h3,button,input,select,textarea {font-size:100%;}
input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}
/* link */
a{color:#333;text-decoration:none;blr:expression(this.onFocus=this.blur());}
a:hover{color:#333;text-decoration:underline;}
a:focus{outline:none;} 
/* clearfix */
.clearfix {*zoom:1;}
.clearfix:after{clear: both; content: "."; display: block; height: 0;visibility: hidden;}
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容