css reset有哪些意思?
发布时间:09/01 来源:未知 浏览:
关键词:
HTML标签在阅读器中都有默许的样式,例如p标签有上下边距,strong标签有字体加粗样式等。不一样阅读器的默许样式之间存在差异,例如ul默许带有缩进样式,在IE下,它的缩进是由margin实现的,而在Firefox下却是由padding实现的。
CSS reset是此刻很流行的解决办法是一开端就将阅读器的默许样式全部覆盖掉,开发时阅读器的默许样式大概会给我们带来多阅读器兼容性问题,影响开发效力。
部分CSS reset内容如下
html {color:#000;background:#FFF;}t5 body,div,dl,dt,dd,ul,ol,li, h1,h2,h3,h4,h5,h6, pre,code,form,fieldset,legend, input,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 {font-style:normal;font-weight:normal;} 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:text-top;} sub {vertical-align:text-bottom;} input,textarea,select {font-family:inherit;font-size:inherit;font-weight:inherit;} input,textarea,select {*font-size:100%;} legend {color:#000;}
相关引荐:《CSS教程》
以上就是css reset是啥意思?的具体内容,更多请关注百分百源码网其它相关文章!