HTML4标签的默认样式列表

来源:W3C 时间:2007-09-28 22:00:00 

本文列出了HTML4标签的默认样式列表,对网页设计者来说这个应该很有用。

原文来自:W3C (http://www.w3.org/TR/CSS21/sample.html )

感谢Junchen提供本信息


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 }
}


标签:样式,默认,html
0
投稿

猜你喜欢

  • windows 7安装ORACLE 10g客户端的方法分享

    2012-07-11 15:36:18
  • asp之自动闭合HTML/ubb标签函数 附简单注释

    2011-02-28 11:24:00
  • rs.open与conn.execute详细解释

    2008-07-03 12:54:00
  • MySQL高级查询方法之记录查询

    2010-06-20 14:48:00
  • 用JS找出字符串中出现次数最多的字母

    2007-11-12 13:40:00
  • 用server.transfer隐藏网页真实地址

    2007-12-04 13:02:00
  • asp函数遍历文件夹代码

    2010-06-21 10:38:00
  • 订单转化率之回访确认

    2009-08-24 12:40:00
  • 蜕变——记QQ医生3.0

    2009-09-16 14:41:00
  • 五种提高 SQL 性能的方法

    2008-05-16 10:40:00
  • MS SQL Server中的CONVERT日期格式化大全

    2010-08-07 11:31:00
  • sqlserver 存储过程动态参数调用实现代码

    2011-10-24 19:41:22
  • SQL Server数据库简体繁体数据混用的问题

    2008-12-05 16:07:00
  • SQL Server数据库对于应用程序的关系

    2010-09-08 09:42:00
  • asp fso操作类

    2011-03-07 10:57:00
  • 如何让新页面在新窗口打开?

    2009-04-12 19:41:00
  • Iinternet Explorer浏览器简介(IE)

    2009-02-05 20:59:00
  • asp入门之字符串函数介绍示例

    2008-11-04 20:18:00
  • 浅谈购物类网站如何保持视觉设计的一致性

    2009-03-30 16:02:00
  • 马化腾关于产品设计与用户体验的培训

    2009-02-12 11:45:00
  • asp之家 网络编程 m.aspxhome.com