430
Working with Text and Strings
Styling built-in HTML tags
Flash Player supports a subset of HTML tags. (For more information, see
“Using HTML-
formatted text” on page 436
.) You can assign a CSS style to every instance of a built-in
HTML tag that appears in a text field. For example, the following code defines a style for the
built-in
<p>
HTML tag. All instances of that tag are styled in the manner specified by the
style rule.
p {
font-family: Arial,Helvetica,sans-serif;
font-size: 12px;
display: inline;
}
The following table shows which built-in HTML tags can be styled and how each style
is applied:
Style name How the style is applied
p
Affects all
<p>
tags.
body
Affects all
<body>
tags. The
p
style, if specified, takes precedence over the
body
style.
li
Affects all
<li>
bullet tags.
a
Affects all
<a>
anchor tags.
a:link
Affects all
<a>
anchor tags. This style is applied after any
a
style.
a:hover
Applied to an
<a>
anchor tag when the mouse pointer is over the link. This
style is applied after any
a
and
a:link
style.
After the mouse pointer moves off the link, the
a:hover
style is removed from
the link.
a:active
Applied to an
<a>
anchor tag when the user clicks the link. This style is applied
after any
a
and
a:link
style.
After the mouse button is released, the
a:active
style is removed from the
link.
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...