CSS reset重置样式_html/css_WEB-ITnose

php中文网
发布: 2016-06-24 11:34:51
原创
2089人浏览过

在一般我们写一个自己自定义的html的时候,我们会清除样式或者说重置样式

重置样式。清除浏览器默认样式,一切全部用自己的设置,并配置适合设计的基础样式

下面给出所有一般需要清除的样式:

html,body,h1,h2,h3,h4,h5,h6,div,dl,dt,dd,ul,ol,li,p,blockquote,pre,hr,figure,table,caption,th,td,form,fieldset,legend,input,button,textarea,menu{margin:0;padding:0;}

header,footer,section,article,aside,nav,hgroup,address,figure,figcaption,menu,details{display:block;}

立即学习前端免费学习笔记(深入)”;

table{ border-collapse : collapse ; border-spacing : 0; }

 

caption,th{ text-align : left ; font-weight : normal ;}

 

html,body,fieldset,img,iframe,abbr{ border : 0; }

 

i,cite,em,var,address,dfn{ font-style : normal ;}

 

[hidefocus],summary{ outline : 0; }

 

li{ list-style : none ;}

 

h1,h2,h3,h4,h5,h6, small { font-size : 100% ;}

 

sup,sub{ font-size : 83% ;}

 

pre,code,kbd,samp{ font-family :inherit;}

 

q:before,q:after{ content : none ;}

 

textarea{ overflow : auto ;resize: none ;}

 

label,summary{ cursor : default ;}

 

a,button{ cursor : pointer ;}

 

h1,h2,h3,h4,h5,h6,em,strong,b{ font-weight : bold ;}

 

del,ins,u,s,a,a:hover{ text-decoration : none ;}

 

body,textarea,input,button,select,keygen,legend{ font : 12px /1.14  arial ,\5b8b\4f 53; color : #333 ; outline : 0; }

 

body{ background : #fff ;}

 

a,a:hover{ color : #333 ;}

在开始写代码的时候可以在一开始就把它全部引进去!

HTML速学教程(入门课程)
HTML速学教程(入门课程)

HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号