ID and Class Selector
The HTML element sets the ID selector with the id attribute, and the ID selector in the CSS is defined as "#". Class selector with a point "." Number Display
Stacking order 1, browser default settings 2, external style sheet 3, internal style sheet (inside
When using the shorthand attribute, the order is body {background:background-color background-image background-repeat background-attachment Background-position}
CSS Text properties: Color direction (text direction) letter-spacing (character spacing) lin-height (set line height) text-align (align Text) text-decoration (add adornments to the literal) Text-indent (the first line of the text in the Indent element Text-shadow (sets the text shadow) Text-transform (the letter in the control Element) Vertical-align (sets the vertical alignment of the element) White-space (to set whitespace handling in an element) word-spacing (set word spacing)
On the computer screen, Sans-serif fonts are considered easier to read than serif fonts
To avoid problems with text that cannot be adjusted in Internet Explorer, many developers use EM units instead of pixels.
EM size units are recommended by the consortium. 1em is equal to the current font size. The default text size in the browser is 16px.
Therefore, the default size of 1em is 16px. You can convert pixels to em:px/16=em by the following formula
css-Study Notes