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如需转载请自行联系原作者


王德水

相关文章
|
4天前
|
移动开发 开发者 UED
HTML5 语义元素详解
HTML5引入了诸多语义元素
|
6天前
|
前端开发
用html+javascript打造公文一键排版系统3:获取参数设置、公文标题排版
用html+javascript打造公文一键排版系统3:获取参数设置、公文标题排版
|
8天前
|
前端开发
Html:CSS的书写位置
Html:CSS的书写位置
18 0
|
6天前
|
存储 JavaScript 前端开发
用HTML DOM实现有条件地渲染网页元素(下)
用HTML DOM实现有条件地渲染网页元素(下)
|
6天前
|
JavaScript 前端开发 容器
用HTML DOM实现有条件地渲染网页元素(上)
用HTML DOM实现有条件地渲染网页元素(上)
|
3天前
|
前端开发 JavaScript 搜索推荐
打造个人博客网站:从零开始的HTML和CSS之旅
【9月更文挑战第32天】在这个数字化的时代,拥有一个个人博客不仅是展示自我的平台,也是技术交流的桥梁。本文将引导初学者理解并实现一个简单的个人博客网站的搭建,涵盖HTML的基础结构、CSS样式的美化技巧以及如何将两者结合来制作一个完整的网页。通过这篇文章,你将学会如何从零开始构建自己的网络空间,并在互联网世界留下你的足迹。
|
4天前
|
移动开发 数据安全/隐私保护 UED
HTML5 表单元素详解
HTML5 引入了新的表单元素和属性,如 `<form>、<input>、<textarea>、<select>` 和 `<button>`,以及 `required、min、max` 等属性,增强了表单的创建与交互。其中,`<input>` 支持多种类型如 `email、url、date` 等,提供了更好的用户体验和数据验证。此外,HTML5 还新增了原生表单验证功能,简化了开发流程并提升了安全性。
|
4天前
|
前端开发 JavaScript 搜索推荐
打造个人博客网站:从零开始的HTML与CSS之旅
【9月更文挑战第31天】在这个数字时代,拥有一个个人博客网站是展示自我、分享知识和连接世界的重要方式。本文将引导你通过简单的HTML和CSS知识,一步步构建起你的在线空间。无论你是编程新手还是希望通过实践加深理解,这篇文章都将是你的理想指南。我们将探索基本概念,实现页面布局,并点缀以个性化样式,最终将静态页面转变为动态交互式网站。准备好了吗?让我们开始吧!
|
7天前
|
JavaScript 前端开发
JavaScript HTML DOM 元素 (节点)
JavaScript HTML DOM 元素 (节点)
14 2
|
7天前
|
XML 前端开发 JavaScript
jQuery HTML / CSS 方法
jQuery HTML / CSS 方法
9 2
下一篇
无影云桌面