1 /*Font2 font family: font-family3 font style: Font-style:normal (default) Italic (italic) oblique (italic font)4 font Size: font-size5 font weight font-weight:normal (default) bold definition size number6 7 8 using EM to set the font size, EM size units are recommended by the Consortium9 1em is equal to the current font size. The default text size in the browser is 16px. Ten One */ A P{ - font-family:"Times New Roman", Times, serif; - Font-style:Inherit; the font-size:14px; - Font-weight:Bold; -} - /*Connection + A:link-Normal, not visited links - a:visited-links that have been visited by the user + A:hover-When the user mouse is placed on the link A A:active-the moment the link was clicked at */ - A:link{ - Color:Red; - -} - a:visited{ in Color:Blue; - text-decoration:Underline; to} + a:hover{ - Color:Green; the} * a:active{ $ Color:Orange;Panax Notoginseng} - /*Note: There are some order rules when you set the style to several link states: the + a:hover must be behind A:link and a:visited . A a:active must be behind A:hover . the */ + - $ /*List $ The List-style shorthand property. Used to set all properties used for the list in a declaration - List-style-image Sets the image to the list item flag. - the - List-style-position Sets the position of the list item flags in the list. Wuyi The inside list item tag is placed inside the text, and the wrapping text is aligned according to the marker. the outside the default value. Keep the marker on the left side of the text. List item markers are placed outside the text, and wrapping text is not aligned with the tag. - Wu List-style-type Sets the type of the list item flag. - */ About $ ul{ - List-style-type:None; - list-style-position:inside; - padding:0px; A margin:0px; + the} - ul Li{ $ Background-image:URL (sqpurple.gif); the background-repeat:no-repeat; the background-position:0px 5px; the Padding-left:14px; the}
CSS Base-font&link&list Properties