HTML4.0元素默认样式整理

所属分类: 网页制作 / HTML/Xhtml 阅读数: 1981
收藏 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 }
}
更多精彩内容其他人还在看

XHTML入门学习教程:文字格式与特殊字符

本节介绍文字格式和特殊字符在XHTML中的实现方法。 文字格式标签 在之前的教程中我们曾经用过一次<b>标签,他使得包含在它之中的内容变成粗体显示。例如“<b>菜鸟吧</b>”将显示为菜鸟吧。我们把这种定义文字
收藏 0 赞 0 分享

XHTML入门学习教程:XHTML标签

XHTML标签简介 也许你在上一节就注意到了,XHTML文件与普通的纯文本文件的最大不同在于一些用“<>”包含的东西,例如<body>。我们把他们叫做标签。通常情况下XHTML标签都是成对出现的,例如<html>&
收藏 0 赞 0 分享

XHTML入门学习教程:XHTML常用标签

就像一篇文章一样,我们的网页也要段落分明,也需要重要程度不同的标题。本节就将介绍XHTML中实现标题、段落等功能的常用签.. 标题标签<h1>到<h6> 定义标题,我们可以使用从<h1>到<h6>这几个标签,它们对应的终止
收藏 0 赞 0 分享

XHTML入门学习教程:什么是XHTML?

什么是HTML? 简单点说:HTML是用来做网页的。它很简单,在接下来的1~2分钟之内你就会跟着我用HTML做一个简单的网页。 复杂点说:HTML(HyperTextMarkupLanguage的缩写),即超文本链接标记语言。它是在互联网发布超文本文件(通常所说的网页
收藏 0 赞 0 分享

XHTML入门学习教程:简单网页制作

用一分钟制作自己的第一个网页: 下面我们来试着做一个简单的网页,希望您能跟着我们操作,这只会花费您一分钟时间。现在您也许不知道那些尖括号“<>”和里面的字母究竟是些什么东西,不要担心,我们会在后面的教程中向您介绍。 首先请运行记事本
收藏 0 赞 0 分享

HTML网页的基本组成概述

网页中的信息主要是以文本为主的。在网页中可以通过字体、大小、颜色、底纹、边框等来设置文本的属性。这里指的文字是文本文字,而并非图片中的文字。在网页制作中,文字都可以方便地设置成各种字体和大小,但是这里还是建议用于正文的文字一般不要太大,也不要使用太多的字
收藏 0 赞 0 分享

表格边框的css语法

  有关表格边框的css语法   具体内容包括:上边框宽度、右边框宽度、下边框宽度、左边框宽度、边框宽度、边框颜色、边框样式、上边框、下边框、左边框、右边框、边框、宽度、高度、有关标签等。    1.上边框宽度   语法: border-top-width: <值&g
收藏 0 赞 0 分享

HTML表格标记教程(48):CSS修饰表格

现在我们来看看怎样巧妙运用css语法美化表格。 注:除非特殊声明,本文所举各例插入的表格的cellspacing、cellpadding、border值均为0。 例一:1px表格
收藏 0 赞 0 分享

HTML表格标记教程(46):表格的表尾标记

<tfoot>标记用于定义表尾的样式。 基本语法 <tfoot align=value1 bgcolor=color_value valign=value2> 语法解释 align代表水平对齐,其中Left为居左,Center为居
收藏 0 赞 0 分享

HTML表格标记教程(47):表格嵌套

在页面中,排版是通过表格的嵌套来完成的。即一个表格内部可以套入另一个表格。原因如下: 首先,网页的排版会很复杂,在外部需要有一个表格控制总体布局。如果这时一些内部排版的细节也通过总表格来实现,容易引起行高列宽等的冲突,给表格制作带来困难。 其次,浏览
收藏 0 赞 0 分享
查看更多