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
投稿

猜你喜欢

  • vue2/vue3路由权限管理的方法实例

    2024-05-29 22:28:54
  • 十分钟利用Python制作属于你自己的个性logo

    2021-08-25 05:12:41
  • jquery 禁止鼠标右键并监听右键事件

    2024-02-23 14:34:19
  • MySQL 按指定字段自定义列表排序的实现

    2024-01-16 08:09:22
  • 将tensorflow.Variable中的某些元素取出组成一个新的矩阵示例

    2022-01-17 23:49:50
  • 在ASP中使用SQL语句之5:开始执行

    2007-08-11 12:36:00
  • 理解生产者消费者模型及在Python编程中的运用实例

    2021-04-07 01:01:59
  • SqlServer将数据库中的表复制到另一个数据库

    2024-01-22 11:31:33
  • tensorflow基本操作小白快速构建线性回归和分类模型

    2022-09-16 17:13:37
  • Html中 IFrame的用法及注意点

    2023-07-02 05:30:16
  • 详解Python的三种可变参数

    2022-06-18 03:09:27
  • Python并发编程实例教程之线程的玩法

    2022-02-02 08:17:41
  • 用javascript来实现仿gogle动画导航

    2007-11-30 14:15:00
  • vue.js前端网页弹框异步行为示例分析

    2024-04-28 09:21:58
  • 一文彻底理解JS回调函数

    2024-04-10 10:52:10
  • python自动化调用百度api解决验证码

    2023-03-18 19:21:27
  • 关于WordPress的SEO优化相关的一些PHP页面脚本技巧

    2024-06-05 09:39:16
  • python numpy 按行归一化的实例

    2023-04-29 09:14:53
  • django admin 添加自定义链接方式

    2022-09-22 05:33:14
  • 解决MySQL数据库中与优化器有关的问题

    2008-12-17 16:18:00
  • asp之家 网络编程 m.aspxhome.com