Tuesday, October 13, 2009

Play turn Dreamweaver8.0: So?CSS attribute

CSS standard allows to use the brief grammar that calls phonographic CSS to establish a pattern. Phonographic CSS makes you can assign the value of many attribute with an attribute label. For example, you can use Font attribute to install Font-style, Font-variant, Font-weight, Font-size, Line-height and Font-family attribute in a grammar.

The crucial question that the attention needs when using phonographic CSS is the acquiescent value that the value that phonographic CSS attribute omits can be assigned to be attribute. Become two or when many CSS regulation appoints same label, this may bring about a page to cannot show correctly.

For example, the H1 ticket that shows below used common CSS grammar. Attention, the acquiesce that the value of Font-variant, Font-stretch, Font-size-adjust and Font-style attribute is appointed to be them is worth.

H1 {Font-weight: Bold;Font-size: 16pt;Line-height: 18pt;Font-family: Arial;Font-variant: Normal;Font-style: Normal;Font-stretch: Normal;Font-size-adjust: None

}
With phonographic attribute rescripts below this one label:

H1 {Font: Bold 16pt/18pt Arial}
When using phonographic symbol to write, the meeting is automatic assign omited value the acquiescent value that is them. Accordingly, afore-mentioned phonographic give typical examples omited Font-variant, Font-style, Font-stretch and Font-size-adjust label.

If you use the phonographic form of CSS grammar and common form to be in not merely a position defined a style (if be in HTML page,guide style) , the attribute that must notice to omit may be enclothed (or cascade) the attribute that installs clearly in other position.

Accordingly, the common form compose that CSS symbol uses below Dreamweaver acquiescent circumstance is syntactic. The potential problem that the phonographic regulation that can prevent can cover common regulation so poses. When the Web page that makes commencement write code with phonographic CSS symbol in Dreamweaver, notice Dreamweaver will use common form to establish new CSS regulation please. Through changing dialog box of " of parameter of " first selection (" of parameter of ">" first selection edits for " in Windows; " of parameter of "Dreamweaver">" first selection is in Macintosh) in the parameter of CSS editor first selection in category of "CSS style " , you can appoint the means that Dreamweaver is founded and edits CSS regulation.

Attention
 
 "Face plate of CSS style " uses common sign to establish regulation only. If you use face plate of "CSS style " to found page or CSS style watch, must know to undertake to phonographic CSS regulation attribute enclothes those to use the property that common form establishs coding by hand may bringing about shorthand. Accordingly, use common CSS sign to establish your pattern please.

No comments:

Post a Comment