Expression web video tutorial section 10 Format menu [4] Style

Source: Internet
Author: User

10 This section describes [block] Div [refer to some Network Information]

Letter-spacing

Syntax: Letter-Spacing: Normal | Length Valid value:
Normal : Default Value. Default Interval
Length : Length Value composed of floating point numbers and unit identifiers, which can be negative values. See length unit
Description: searches for or sets the interval between texts in an object.
This attribute adds the specified interval to each text, but the last word is excluded.
The Character spacing is subject to alignment adjustment.
This property Currentstyle The object is read-only. Other objects can be read and written.
Corresponding script features: Letterspacing . Example: div {letter-Spacing: 6px ;}
Div {letter-Spacing: 0.5pt ;}

==================================

Syntax: Line-height: Normal | Length Valid value:
Normal : Default Value. Default Row Height
Length : Percent number | length value composed of floating-point numbers and unit identifiers, which can be negative values. The percentage value is based on the font height. See length unit
Description: Retrieves or sets the Row Height of an object. That is, the distance between the bottom of the font and the top of the font.
The row height is the distance between the bottom of the font and the top of the internal height of the font. The row height with negative values can be used to achieve the shadow effect.
If a formatted row contains more than one object, the maximum row height will be applied. In this case, this attribute cannot be negative.
This property Currentstyle The object is read-only. Other objects can be read and written.
Corresponding script features: Lineheight . Example: div {Line-Height: 6px ;}
Div {Line-Height: 10.5 ;}

========================

Text-indent: Length Valid value:
Length : Percent number | length value composed of floating-point numbers and unit identifiers, which can be negative values. See length unit
Description: Retrieves or sets the indentation of text in an object. The default value is 0 .
When another object (such BR This attribute cannot be applied to disconnected objects.
This property Currentstyle The object is read-only. Other objects can be read and written.
Corresponding script features: Textindent . Example: div {text-indent: 2 cm}
. Click1 {text-indent: 50%}
. Click2 {text-indent :}

======================================

Syntax: Text-align: Left | Right | Center | Justify Valid value:
Left : Default Value. Left aligned
Right : Right alignment
Center : Center alignment
Justify : Alignment at both ends
Description: sets or retrieves the text alignment of an object.
This attribute acts on all block elements ). In Div All block objects in the object will inherit this attribute value. If the attribute is not set, this parameter is obtained. Null Value.
This property Currentstyle The object is read-only. Other objects can be read and written.
Corresponding script features: Textalign . Example: div {text-align: center ;}

==============================

Syntax: White-space: Normal | Pre | Nowrap Valid value:
Normal : Default Value. The default processing method. Text automatically processes line breaks. If the container boundary content arrives, it will go to the next line.
Pre : Line breaks and other blank characters are protected. This value must be IE6 + or! DoctypeDeclaredStandards-compliant modeYes. If! DoctypeThe Declaration is not specifiedStandards-compliant modeThis attribute can be used but does not work. The result is equivalentNormal. SeePreObject
Nowrap : Forcibly display all text in the same row until the text ends or encountersBRObject. SeeNowrapAttribute
Description: sets or retrieves the processing method of space characters in an object.
Space characters, such as line breaks, spaces, and tabs, are ignored by default in HTML documents. When this attribute is set Normal Or Nowrap You can use a named entity that does not wrap Spaces & Nbsp; To add spaces. BR Element to add a line feed. This attribute has the same impact on the content you operate on using the Document Object Model (DOM) as on the content displayed on IE.
This attribute acts on block objects.
This property Currentstyle The object is read-only. Other objects can be read and written.
Corresponding script features: Whitespace . Example: P {white-space: nowrap ;}

======================================

Syntax: Vertical-align: Auto | Baseline | Sub | Super | Top | Text-top | Middle | Bottom | Text-bottom | Length Valid value:
Auto : Css1 Alignment object content based on the value of layout-Flow
Baseline : Css1 Default Value. Will supportValignThe content of the feature object is aligned with the baseline.
Sub : Css1 Vertical align text subscript
Super : Css1 Vertical Alignment
Top : Css1 Will supportValignThe content of a feature object is aligned at the top of the object.
Text-top : Css1 Will supportValignThe text of the feature object is aligned with the top of the object
Middle : Css1 Will supportValignThe content of the feature object is aligned with the center of the object.
Bottom : Css1 Will supportValignThe content of the feature object is aligned with the bottom of the object.
Text-bottom : Css1 Will supportValignThe text of the feature object is aligned with the top of the object
Length : Css2 Length Value composed of floating point numbers and unit identifiers | percentage. Can be negative. Defines the offset calculated from the baseline. The baseline is 0 for a value and 0% for a percentage. See length units. Currently, ie has not implemented this parameter.
Description: sets or retrieves the vertical method of object content.
For Currentstyle The default value of this attribute is Auto . For other objects Baseline .
This property Currentstyle The object is read-only. Other objects can be read and written.
Corresponding script features: Verticalalign . Example: TD {vertical-align: middle ;}

====================================

Syntax: Word-Spacing: Normal | Length Valid value:
Normal : Default Value. Default Interval
Length : Length Value composed of floating point numbers and unit identifiers, which can be negative values. See length unit
Description: searches for or sets an empty gap between words in an object.
Internet Explorer 4 + is only available on Mac. Support for other system platforms starts with ie6.
The word spacing is subject to alignment adjustment.
This property Currentstyle The object is read-only. Other objects can be read and written.
Corresponding script features: Wordspacing . Example: div {word-Spacing: 10 ;}
Div {word-Spacing: 10px ;}

Video
Recording as soon as possible

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.