HTML元素的默认CSS设置介绍

简介:
html, address, 
blockquote, 
body, dd, div, 
dl, dt, fieldset, form, 
frame, frameset, 
h1, h2, h3, h4, 
h5, h6, noframes, 
ol, p, ul, center, 
dir, hr, menu, pre { display: block } 
li { display: list-item } 
head { display: none } 
table { display: table } 
tr { display: table-row } 
thead { display: table-header-group } 
tbody { display: table-row-group } 
tfoot { display: table-footer-group } 
col { display: table-column } 
colgroup { display: table-column-group } 
td, th { display: table-cell; } 
caption { display: table-caption } 
th { font-weight: bolder; text-align: center } 
caption { text-align: center } 
body { margin: 8px; line-height: 1.12 } 
h1 { font-size: 2em; margin: .67em 0 } 
h2 { font-size: 1.5em; margin: .75em 0 } 
h3 { font-size: 1.17em; margin: .83em 0 } 
h4, p, 
blockquote, ul, 
fieldset, form, 
ol, dl, dir, 
menu { margin: 1.12em 0 } 
h5 { font-size: .83em; margin: 1.5em 0 } 
h6 { font-size: .75em; margin: 1.67em 0 } 
h1, h2, h3, h4, 
h5, h6, b,strong { font-weight: bolder } 
blockquote { margin-left: 40px; margin-right: 40px } 
i, cite, em, 
var, address { font-style: italic } 
pre, tt, code, 
kbd, samp { font-family: monospace } 
pre { white-space: pre } 
button, textarea, 
input, object, 
select { display:inline-block; } 
big { font-size: 1.17em } 
small, sub, sup { font-size: .83em } 
sub { vertical-align: sub } 
sup { vertical-align: super } 
table { border-spacing: 2px; } 
thead, tbody, 
tfoot { vertical-align: middle } 
td, th { vertical-align: inherit } 
s, strike, del { text-decoration: line-through } 
hr { border: 1px inset } 
ol, ul, dir, 
menu, dd { margin-left: 40px } 
ol { list-style-type: decimal } 
ol ul, ul ol, 
ul ul, ol ol { margin-top: 0; margin-bottom: 0 } 
u, ins { text-decoration: underline } 
br:before { content: "/A" } 
:before, :after { white-space: pre-line } 
center { text-align: center } 
abbr, acronym { font-variant: small-caps; letter-spacing: 0.1em } 
:link, :visited { text-decoration: underline } 
:focus { outline: thin dotted invert } 
/* Begin bidirectionality settings (do not change) */ 
BDO[DIR="ltr"] { direction: ltr; unicode-bidi: bidi-override } 
BDO[DIR="rtl"] { direction: rtl; unicode-bidi: bidi-override } 
*[DIR="ltr"] { direction: ltr; unicode-bidi: embed } 
*[DIR="rtl"] { direction: rtl; unicode-bidi: embed } 
@media print { 
h1 { page-break-before: always } 
h1, h2, h3, 
h4, h5, h6 { page-break-after: avoid } 
ul, ol, dl { page-break-before: avoid } 

}

本文转自敏捷的水博客园博客,原文链接http://www.cnblogs.com/cnblogsfans/articles/1083458.html如需转载请自行联系原作者


王德水

相关文章
|
1月前
|
前端开发 JavaScript
如何使用CSS过渡实现页面元素的淡入淡出效果?
如何使用CSS过渡实现页面元素的淡入淡出效果?
119 79
|
1月前
|
前端开发
【2025优雅草开源计划进行中01】-针对web前端开发初学者使用-优雅草科技官网-纯静态页面html+css+JavaScript可直接下载使用-开源-首页为优雅草吴银满工程师原创-优雅草卓伊凡发布
【2025优雅草开源计划进行中01】-针对web前端开发初学者使用-优雅草科技官网-纯静态页面html+css+JavaScript可直接下载使用-开源-首页为优雅草吴银满工程师原创-优雅草卓伊凡发布
43 1
【2025优雅草开源计划进行中01】-针对web前端开发初学者使用-优雅草科技官网-纯静态页面html+css+JavaScript可直接下载使用-开源-首页为优雅草吴银满工程师原创-优雅草卓伊凡发布
|
2月前
|
人工智能 程序员 UED
【01】完成新年倒计时页面-蛇年新年快乐倒计时领取礼物放烟花html代码优雅草科技央千澈写采用html5+div+CSS+JavaScript-优雅草卓伊凡-做一条关于新年的代码分享给你们-为了C站的分拼一下子
【01】完成新年倒计时页面-蛇年新年快乐倒计时领取礼物放烟花html代码优雅草科技央千澈写采用html5+div+CSS+JavaScript-优雅草卓伊凡-做一条关于新年的代码分享给你们-为了C站的分拼一下子
146 21
【01】完成新年倒计时页面-蛇年新年快乐倒计时领取礼物放烟花html代码优雅草科技央千澈写采用html5+div+CSS+JavaScript-优雅草卓伊凡-做一条关于新年的代码分享给你们-为了C站的分拼一下子
|
2月前
|
前端开发 JavaScript
【02】v1.0.1更新增加倒计时完成后的放烟花页面-优化播放器-优化结构目录-蛇年新年快乐倒计时领取礼物放烟花html代码优雅草科技央千澈写采用html5+div+CSS+JavaScript-优雅草卓伊凡-做一条关于新年的代码分享给你们-为了C站的分拼一下子
【02】v1.0.1更新增加倒计时完成后的放烟花页面-优化播放器-优化结构目录-蛇年新年快乐倒计时领取礼物放烟花html代码优雅草科技央千澈写采用html5+div+CSS+JavaScript-优雅草卓伊凡-做一条关于新年的代码分享给你们-为了C站的分拼一下子
62 14
【02】v1.0.1更新增加倒计时完成后的放烟花页面-优化播放器-优化结构目录-蛇年新年快乐倒计时领取礼物放烟花html代码优雅草科技央千澈写采用html5+div+CSS+JavaScript-优雅草卓伊凡-做一条关于新年的代码分享给你们-为了C站的分拼一下子
|
2月前
css3 svg制作404页面动画效果HTML源码
css3 svg制作404页面动画效果HTML源码
70 34
|
2月前
html+js+css实现的建筑方块立体数字时钟源码
html+js+css实现的建筑方块立体数字时钟源码
101 33
|
2月前
|
前端开发
“弘五四,耀青春”程序创意获奖作品【html+css】
本作品以“青春筑梦,共创未来”为主题,采用动态龙元素展现青春活力与创新精神。页面设计简洁明快,色彩协调,突显年轻人积极向上的风貌。作品内容包括获奖截图、名字《时代扬新帆》及源代码分享。特别说明:禁止用于商业活动,可用于比赛和作业等开源场景。最后,作者表达了对五四精神的致敬与传承,强调了青春活力和创造力的重要性,并感谢评委和支持者。 **获奖感言摘录:** “获得这个奖项,对我们团队来说,既是认可也是激励。我们将继续努力,不断优化产品,为用户带来更好的体验,为社会贡献更多价值。”
39 2
|
3月前
一个好看的小时钟html+js+css源码
一个好看的小时钟html+js+css源码
123 24
|
5月前
|
前端开发 JavaScript 搜索推荐
打造个人博客网站:从零开始的HTML和CSS之旅
【9月更文挑战第32天】在这个数字化的时代,拥有一个个人博客不仅是展示自我的平台,也是技术交流的桥梁。本文将引导初学者理解并实现一个简单的个人博客网站的搭建,涵盖HTML的基础结构、CSS样式的美化技巧以及如何将两者结合来制作一个完整的网页。通过这篇文章,你将学会如何从零开始构建自己的网络空间,并在互联网世界留下你的足迹。

热门文章

最新文章