HTML4.0元素默认样式整理

所属分类: 网页制作 / HTML/Xhtml 阅读数: 1957
收藏 0 赞 0 分享

复制代码
代码如下:

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; unicode-bidi: embed }
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 }
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, 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, tr { 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"; white-space: pre-line }
center { text-align: center }
: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 }
}
更多精彩内容其他人还在看

src或者css背景图的url值为base64编码代码

base64简单地说,它把一些 8-bit 数据翻译成标准 ASCII 字符,网上有很多免费的base64 编码和解码的工具,目前,IE8、Firfox、Chrome、Opera浏览器都支持这种小文件嵌入
收藏 0 赞 0 分享

按钮与回车键关联的js代码

按钮与回车键如何关联,在本文有个不错的示例,感兴趣的朋友可以参考下,希望对大家有所帮助
收藏 0 赞 0 分享

表单元素属性readonly和disabled使用对比

表单元素属性readonly和disabled在适应范围、操作、表单提交等等方面都有所不同,至于有哪些不同,感兴趣的朋友可以了解下本文
收藏 0 赞 0 分享

a标签伪类的作用及书写顺序是什么

a标签的伪类只不过是又结合了不同的动作顺序,动作的触发顺序决定了伪类的顺序必须按lvha来写,接下来为大家详细介绍下,感兴趣的朋友不妨参考下
收藏 0 赞 0 分享

HTML+css制作简易进度条

进度条想必大家并不陌生吧,而且实现方法各种各样,在本文为大家讲解下利用html+css实现进度条的制作,感兴趣的朋友可以尝试操作下
收藏 0 赞 0 分享

html左右布局示例代码

左右布局的形式想必大家都熟悉吧,在本文有个不错的示例,希望可以帮助大家更好的了解左右布局的概念
收藏 0 赞 0 分享

Form表单的action和onSubmit示例介绍

action是form的属性,onSubmit为事件,要说执行的先后顺序,个人理解是onSubmit在先,下面有个不错的示例可以帮助大家更好的立即,感兴趣的朋友不要错过
收藏 0 赞 0 分享

HTML页面加载和解析流程详细介绍

浏览器加载和渲染html的顺序、如何加快HTML页面加载速度、HTML页面加载和解析流程等等,在本文将为大家详细介绍下,感兴趣的朋友不要错过
收藏 0 赞 0 分享

Html+CSS浮动的广告条实现分解

广告条想必大家并不陌生吧,在本文将为大家详细介绍下如何使用Html+CSS实现浮动的广告条,感兴趣的朋友可以参考下
收藏 0 赞 0 分享

使select在选中/聚焦时列出所有选项目前比较好的处理方式

在页面上使用快捷键盘快捷定位到支付方式选择框(一个下拉列表)并进行选择,在网上找了些资料后,得出目前比较好的处理方式在此与大家分享下,希望对大家有所帮助
收藏 0 赞 0 分享
查看更多