How to use CSS to control the display page font styles
HTML content to <font> </ font> label only: <font color=colorvalue size=fontsize face=å—åž‹> </ font> of the three kinds of settings, and on the CSS content <font> </ font> the Let us extend the specifications of the font can be more detailed settings. The font settings: font-family: name of a font, the font name 3, the font name 3, and so on. Display type priority, if the computer has installed the fonts, font it to the show. If you set the font, all client computers had not been installed, it will have been the default browser font Show: font-size: 18pt | 120% | xx-small | s small-| small | medium | large | x-large | xx-large
The font size for a strict definition of two kinds:
1, such as absolute: pt; in these size is fixed and will not change resolution ..
2, the relative such as: px; em;% of these will be a resolution with the current name change …
Font-style: normal | italic | oblique
Italic font-weight: normal | bold | lighter | bolder | 100-900
Font size font-variant: normal | small-caps
English lowercase to uppercase font smaller
Application of the above can be used [CSS sets of] any way ..
For example:
The following is quoted fragment:
<html>
<head>
<title> </ Title>
<style>
Span (font-size: 20pt;
Font-color: purple;
Font-variant: = small caps;
)
</ Style>
</ Head>
<body>
<span> Dhtml & Asp </ span>
</ Body>
</ Html>
In this way shows that the font size will be 20 pt, purple, English lowercase transformed into a smaller capital. Or you can set this:
The following is quoted fragment:
<html>
<head>
<title> </ Title>
</ Head>
<body>
<span Style="font-size:20pt;font-color:purple;font-variant:small-caps"> Dhtml & Asp </ span>
</ Body>
</ Html>
In this way shows that the size of the same size is 20 pt, purple, English lowercase transformed into a smaller capital.
Tags: Display, Font Family, Font Size, Font Style, Font Variant, Font Weight






Leave a Reply