1.CSS Font Shop When you use CSS to define fonts, you may do this: font-size: 1em; line-height: 1.5em; font-weight: bold; font-style: italic; font-variant: Small-Caps Font-Family: Verdana, Serif; in fact you can abide these properties: font: 1em / 1.5em Bold Italic Small-Caps Verdana, Serif now, but you have to pay attention: Use this shorthand, you are at least Specify Font-Size and Font-Family properties, other properties (such as font-weight, font-style, font-varient), if not specified will automatically use the default value. 2. Simultaneously use two class Class usually specify a class for the property, but this does not mean you can only specify one, in fact, how much can you specify, for example:
... p> This paragraph will simultaneously apply the rules set in both CLASS at the same time. If there is any rule overlap in the two, then the latter one will achieve the actual priority application. 3. The default value of Border Border (Border) When writing a border, you usually specify color, width, and style (any order). For example: Border: 3px solid # 000 (3 pixels wide black solid line border), in fact, the only value that needs to be specified in this example is just a style. If you specify the style as a solid line (SOLID), the rest of the value will use the default value: the default width is medium (equivalent to 3 to 4 pixels); the default color is the text color in the border. If this is the effect you want, you can do not specify in CSS. 4. Important will be ignored by IE in CSS, usually the final specified rule will get priority. However, in addition to the browser other than IE, any later marked statement will gain absolute priority, such as: margin-top: 3.5em! Important; margin-top: 2em All browsers other than IE The top boundary is 3.5EM, and IE is 2em, sometimes it is useful, especially when using the relative boundary value (like this example), you can display a subtle difference of IE and other browsers. (Many people may also pay attention to the CSS son selector is also ignored by IE) 5. Image replacement skills use standard HTML instead of pictures to display text is usually more sensible, in addition to speeding download and better availability . But if you are determined to use the font that may have no fonts in the machine, you can only choose the image.
For example, you want to use the "Buy Widget" title at the top of each page, but you also hope that this can be found in the search engine. For the beautiful view, you have used a rare font, then you have to use pictures to display