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 block form by default, and those that are not displayed will be displayed as inline elements. This list is for the HTML4 version, and some elements will be obsolete in XHTML1*/
li { display: list-item }/*The default is to display in a list*/
head { display: none }/*The default is not to display*/
table { display: table }/*The default is to display in a table*/
tr { display: table-row }/*The default is table row display*/
thead { display: table-header-group }/*The default is table header group display*/
tbody { display: table- row-group }/*The default is the group display of table rows*/
tfoot { display: table-footer-group }/*The default is the group display at the bottom of the table*/
col { display: table-column }/* The default is table column display*/
colgroup { display: table-column-group }/*The default is table column group display*/
td, th { display: table-cell; }/*Default Display for cells*/
caption { display: table-caption }/*Default for table title display*/
th { font-weight: bolder; text-align: center }/ *The default is to display the table title, in a bold and centered state*/
caption { text-align: center }/*The default is to display the table title, 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.5 em 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 the sub element to display subscript by default*/
sup { vertical-align: super }/*Define the sub element to display by default Display superscript */
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 cells and column titles to be vertically aligned by default and inherited by default*/
s, strike, del { text-decoration: line-through }/* Define these elements to be displayed as strikethroughs by default*/
hr { border: 1px inset }/* Define the dividing line to be a 1px wide 3D concave edge effect by default*/
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 the line break 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 bidirectionality settings (do not change) */
BDO[DIR="ltr"] { direction: ltr; unicode-bidi: bidi-override }/*Define the default text reading and writing display order of the BDO element when its attribute is DIR="ltr"*/
BDO[ DIR="rtl"] { direction: rtl; unicode-bidi: bidi-override }/*Define the default text reading and writing display order of the BDO element when its attribute is DIR="rtl"*/
*[DIR= "ltr"] { direction: ltr; unicode-bidi: embed }/*Define the default text reading and writing display order of any element when its attribute is DIR="ltr"*/
*[DIR="rtl"] { direction: rtl; unicode-bidi: embed }/*Define the default text reading and writing display order of any element when its attribute is DIR="rtl"*/
@media print { /*Define the title and List default printing style*/
h1 { page-break-before: always }
h1, h2, h3, h4, h5, h6 { page-break-after: avoid }
ul, ol, dl { page-break-before: avoid }
}
Browser default style
1. Page margin
IE default is 10px, passed The margin attribute setting of the body
FF defaults to 8px, and the padding attribute setting of the body
To clear the page margins, you must clear these two attribute values