美文网首页
HTML内所有元素的默认display形态

HTML内所有元素的默认display形态

作者: 博文的栋哥 | 来源:发表于2018-04-08 20:24 被阅读0次
.dcss html,.dcss address,.dcss blockquote,.dcss body,.dcss dd,.dcss div,
.dcss dl,.dcss dt,.dcss fieldset,.dcss form,.dcss frame,.dcss frameset,
.dcss h1,.dcss h2,.dcss h3,.dcss h4,.dcss h5,.dcss h6,.dcss noframes,
.dcss ol,.dcss p,.dcss ul,.dcss center,.dcss dir,.dcss hr,.dcss menu, 
.dcss pre { display: block }
.dcss li { display: list-item }
.dcss head { display: none }
.dcss table { display: table }
.dcss tr { display: table-row }
.dcss thead { display: table-header-group }
.dcss tbody { display: table-row-group }
.dcss tfoot { display: table-footer-group }
.dcss col { display: table-column }
.dcss colgroup { display: table-column-group }
.dcss td,.dcss  th { display: table-cell; }
.dcss caption { display: table-caption }
.dcss th { font-weight: bolder; text-align: center }
.dcss caption { text-align: center }
.dcss body { margin: 8px; line-height: 1.12 }
.dcss h1 { font-size: 2em; margin: .67em 0;line-height: 1.5em }
.dcss h2 { font-size: 1.5em; margin: .75em 0;line-height: 1.5em }
.dcss h3 { font-size: 1.17em; margin: .83em 0;line-height: 1.5em }
.dcss h4 { font-size: 1.09em; margin: 1.12em 0;line-height: 1.5em }
.dcss h4,.dcss p,.dcss blockquote,.dcss ul,.dcss fieldset, .dcss form,.dcss ol,.dcss dl,.dcss dir,.dcss menu { margin: 1.12em 0 }
.dcss h5 { font-size: .83em; margin: 1.5em 0;line-height: 1.5em }
.dcss h6 { font-size: .75em; margin: 1.67em 0;line-height: 1.5em }
.dcss h1, .dcss h2, .dcss h3, .dcss h4, .dcss h5, .dcss h6, .dcss b,.dcss strong { font-weight: bolder }
.dcss blockquote { margin-left: 40px; margin-right: 40px }
.dcss i, .dcss cite, .dcss em,.dcss var,.dcss address { font-style: italic }
.dcss pre, .dcss tt,.dcss  code,.dcss  kbd,.dcss samp { font-family: monospace }
.dcss pre { white-space: pre }
.dcss button,.dcss textarea,.dcss input,.dcss object,.dcss select { display:inline-block; }
.dcss big { font-size: 1.17em }
.dcss small, .dcss sub, .dcss sup { font-size: .83em }
.dcss sub { vertical-align: sub }
.dcss sup { vertical-align: super }
.dcss table { border-spacing: 2px; }
.dcss thead, .dcss tbody,.dcss tfoot { vertical-align: middle }
.dcss td, .dcss th { vertical-align: inherit }
.dcss s, .dcss strike,.dcss  del { text-decoration: line-through }
.dcss hr { border: 1px inset }
.dcss ol, .dcss ul,.dcss  dir, .dcss menu, .dcss dd { margin-left: 40px }
.dcss ol { list-style-type: decimal }
.dcss ol ul,.dcss ul ol, .dcss ul ul, .dcss ol ol { margin-top: 0; margin-bottom: 0 }
.dcss u,.dcss ins { text-decoration: underline }
.dcss br:before { content: "A" }
.dcss :before, .dcss :after { white-space: pre-line }
.dcss center { text-align: center }
.dcss abbr,.dcss acronym { font-variant: small-caps; letter-spacing: 0.1em }
.dcss :link,.dcss :visited { text-decoration: underline }
.dcss :focus { outline: thin dotted invert }
.dcss BDO[DIR="ltr"] { direction: ltr; unicode-bidi: bidi-override }
.dcss BDO[DIR="rtl"] { direction: rtl; unicode-bidi: bidi-override }
.dcss *[DIR="ltr"] { direction: ltr; unicode-bidi: embed }
.dcss *[DIR="rtl"] { direction: rtl; unicode-bidi: embed }
<a href='https://github.com/media' class='user-mention'>@media</a> print {
    .dcss h1 { page-break-before: always }
    .dcss h1,.dcss h2,.dcss h3,.dcss h4,.dcss h5,.dcss h6 { page-break-after: avoid }
    .dcss ul,.dcss ol,.dcss dl { page-break-before: avoid }

相关文章

  • HTML内所有元素的默认display形态

  • 块级标签

    形态属性(display) 块级元素 独占一整行、换行效果、可以指定宽高度、默认宽度为100%、默认高度为自适应内...

  • Display是什么

    介绍 display 是CSS属性指定用于元素的呈现框的类型。 在 HTML 中,默认的 display 属性取决...

  • css display

    简介 display CSS属性指定用于元素的呈现框的类型。在 HTML 中,默认的 display 属性取决于 ...

  • 【CSS显示display】

    display属性 浮动、定位对display的影响; 行元素与块元素默认的display类型; 属性类型: di...

  • CSS世界笔记

    当display为block时,不要设置width:100%,display元素的默认宽度就是填充父元素的100%...

  • CSS页面布局总结

    display:设置元素的显示方式 display:block(块级元素) 默认为父元素宽高,可设置宽高相对前序换...

  • CSS 2.7 默认样式的意义

    引入CSS Reset可以清空所有的HTML默认元素样式

  • flex布局

    父元素使用display:flex 子元素:flex:1 .flexBox{ ...

  • Css3One

    行和块的互相转换 display:元素的出生是自带一个默认display(控制元素显示方式)属性 决定元素该怎么显...

网友评论

      本文标题:HTML内所有元素的默认display形态

      本文链接:https://www.haomeiwen.com/subject/rwimhftx.html