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 }/*The above list elements are displayed in blocks by default, and those that are not displayed will be displayed as inline elements. This list is for HTML4 version, and some elements will be discarded in XHTML1*/
li { display: list-item }/*Default is displayed in list*/
head { display: none }/*Don't display by default*/
table { display: table }/* default to table display*/
tr { display: table-row }/*Default is table row display*/
thead { display: table-header-group }/*Default is displayed as the table header group*/
tbody { display: table-row-group }/*Default is to display table rows in grouping*/
tfoot { display: table-footer-group }/*Default is displayed as the bottom group of the table*/
col { display: table-column }/*Default is table column display*/
colgroup { display: table-column-group }/*Default is to display table column grouping*/
td, th { display: table-cell; }/*Default is cell display*/
caption { display: table-caption }/*Default is the table title display*/
th { font-weight: bolder; text-align: center }/*Default is the table title display, and the status is bold and centered*/
caption { text-align: center }/*By default, it is displayed in a centered state*/
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 }/*Define sub element defaults to subscript to display*/
sup { vertical-align: super }/*Define the sub element as the superscript is displayed by default*/
table { border-spacing: 2px; }
thead, tbody, tfoot { vertical-align: middle }/*Define the table header, body table, and table foot elements to be vertically aligned by default*/
td, th { vertical-align: inherit }/*Define cell and column titles default to vertical alignment default to inheritance */
s, strike, del { text-decoration: line-through }/*Define these elements as strikethrough display by default*/
hr { border: 1px inset }/*Define the 3D concave edge effect with the default of 1px wide*/
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 }/*Define the pseudo-object content style of a new line element*/
:before, :after { white-space: pre-line }/*Define the default style of pseudo-object space characters*/
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 bicycle orientation settings (do not change) */
BDO[DIR=ltr] { direction: ltr; unicode-bidi: bidi-override }/*Define the default text read and write display order when the attribute of BDO element is DIR=ltr*/
BDO[DIR=rtl] { direction: rtl; unicode-bidi: bidi-override }/*Define the default text read and write display order when the attribute of BDO element is DIR=rtl*/
*[DIR=ltr] { direction: ltr; unicode-bidi: embed }/*Define the default text read and write display order when any element's attribute is DIR=ltr*/
*[DIR=rtl] { direction: rtl; unicode-bidi: embed }/*Define the default text read and write display order when any element's attribute is DIR=rtl*/
@media print { /*Define the default print style of title and list*/
h1 { page-break-before: always }
h1, h2, h3, h4, h5, h6 { page-break-after: avoid }
ul, ol, dl { page-break-before: avoid }
}
Browser default style1. Page margin
IE defaults to 10px, set through the margin property of the body
FF defaults to 8px, set through the padding property of the body
To clear page margins, you must clear these two attribute values
Copy the code