css页面通用样式初始化代码
2014-08-07 09:21
621 查看
html{color:#000;background:#FFF}
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}
ol,ul{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}
#yui3-css-stamp.cssreset{display:none}
.clearfix{*zoom:1}
.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}
----------------------------------------------------------------------------------------------------------------------------
以上代码在写html页面的时候,可以先添加上。可以去掉部分元素的某些默认样式。便于页面布局。
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}
ol,ul{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}
#yui3-css-stamp.cssreset{display:none}
.clearfix{*zoom:1}
.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}
----------------------------------------------------------------------------------------------------------------------------
以上代码在写html页面的时候,可以先添加上。可以去掉部分元素的某些默认样式。便于页面布局。
相关文章推荐
- 每个页面通用的CSS:global.css 对某些标签进行初始化样式设置 加些特定的margin值 等
- 每个页面通用的CSS:global.css 对某些标签进行初始化样式设置 加些特定的margin值 等
- 同一html页面中不同链接的不同样式的css代码
- 编写手机端自适应页面案例,springMVC代码,SpringMVC上传代码,去掉input框中原有的样式,使ios按钮没有圆角,css中的border-radius类似
- 网站通用样式css代码
- 为什么要初始化 CSS 样式 因为浏览器的兼容问题,不同浏览器对有些标签的默认值是不同的,如果没对 CSS 初始化往往会出现浏览器之间的页面显示差异。 当然,初始化样式会对 SEO 有一定的影响,但鱼
- 页面定制CSS代码初探(四):cnblogs使用Github引用样式
- 各大网站的页面初始化css代码
- 移动H5页面CSS 样式控制,禁止页面文本复制代码
- 页面定制CSS代码初探(二):自定义h2标题样式 添加阴影 添加底色 等
- css初始化通用代码(集合)
- 在项目开发中,jsp页面不会少了,如何公用页面(添加页面和修改页面)和公用样式代码(css,js)?
- 修改页面滚动条样式CSS代码!(待修改兼容性)
- 编写手机端自适应页面案例,springMVC代码,SpringMVC上传代码,去掉input框中原有的样式,使ios按钮没有圆角,css中的border-radius类似
- CSS样式初始化代码
- [cnblogs镜像]页面定制CSS代码初探(二):自定义h2标题样式 添加阴影 添加底色 等
- css初始化样式代码
- DIV+CSS通用样式布局实例代码
- 精简的CSS代码,实现页面样式通用性。
- reset.css页面样式初始化