切版网(2013~2023)

http://qieban.cn
做完设计,找切版网
QQ:6135833
微信:dingxiangming82

2017年09月21日

每个标签都自带样式,你知道更具体的吗?

本文就“每个标签都自带样式,你知道更具体的吗?”展开讨论,作者切版网,发布于2017年09月21日 全文共2358个字,预计阅读时长7分51秒

做过web前端开发的都知道,每个标签都自带样式,比如body自带margin,a标签自带下划线,li标签自带小圆点,但是你知道更具体的吗?以下的文档还原了w3c对每个标签最初的定义,收藏一下,对你一定有帮助。

[codesyntax lang=”css”]

@charset "utf-8";
/*@charset "gb2312";*/
/**
 * ============================================================================
 * 版权所有: 切版
 * 网站地址: http://www.qieban.cn
 * 该文件为W3C为标签赋予最原始样式规则、制作参考无实际作用
 * ----------------------------------------------------------------------------
**/

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

[/codesyntax]

 

切版,切图网旗下靠谱的web前端外包服务切图客群体。http://www.qieban.cn/

文章为原创或者来自于互联网,转载请注明来源,如果文章有侵权请联系,我们会及时删除。

更多相关文章

未分类

网站切版的优化有哪些方法?

发布时间:2023年06月10日 标签:,

1. 利用CSS Sprites技术来减少HTTP请求的数量。 2. 对于能使用CSS实现的效果,尽量避免使用 […]

未分类, 本站动态

微信小程序切图echarts层级太高解决方案

发布时间:2022年08月27日 标签:

摘要:项目中因为需求,底部的导航栏是自己写的,在开发者工具中一切正常但是在真机上页面滑动时,的层级比高,调过两 […]

未分类, 本站动态

解决移动端 click 事件延迟300ms插件fastclick.js

发布时间:2022年04月14日

这是一款绿色的提高用户体验的js插件,可以放心使用。为什么使用?解决触发元素的 click 事件延迟300ms […]

未分类

跨屏是一种趋势,企业顺势才能赢得未来

发布时间:2021年12月6日 标签:, ,

根据艾瑞网的统计,早在2014年中国移动互联网市场规模为2134.8亿元,突破千亿元大关,同比增长115.5% […]

未分类

什么是跨屏版网站?它和电脑版网站有什么不同?

发布时间:2021年12月6日 标签:,

跨屏版网站有很多种说法,比如响应式网站、自适应网站等等,我们暂且叫“跨屏版”,是因为它和 电脑版,触屏版等有一 […]

未分类

为什么网站需要跨屏?

发布时间:2021年12月6日 标签:, , ,

跨屏网页设计是近几年来广为流行的方式,跨屏建站方案替代了传统的多屏建站方案,多屏建站即为不同的终端单独建立一个 […]

查看更多