Avaya 4600 Series Aplikační záznam Strana 176

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 206
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 175
Web Browser for the 4625SW IP Telephone
176 4600 Series IP Telephones Application Programmer Interface (API) Guide
Cascading Order
If more than one style is specified for a WML element, the multiple style definitions cascade into
one style definition. Many factors affect the precedence of styles, including:
The default style of the browser on the phone, that is, how elements are presented in the
absence of presentation rules from a style sheet.
Inheritance rules under which style rules are inherited by elements.
A style rule that is more specific takes precedence over a less specific, conflicting rule. For
example, a style rule applied to a class of elements takes precedence over a rule that
applies to an element in general, and a rule that applies to an element ID takes
precedence over both.
In general, the most recent style rule in a document takes precedence over earlier style
rules.
If a style rule in a style sheet conflicts with a presentational attribute of a WML element, the
style sheet takes precedence.
In lieu of a specific rule for a particular tag element, properties and their values for tags within
tags are inherited from their parent tag. Thus, setting a property for the <wml> tag effectively
applies that property to every tag in the body of the document, except for those that specifically
override it. To make all the text in the page blue, code the following:
wml style="color:blue;"
rather than creating a rule for every tag used in the page.
This inheritance extends to any level. If the page author later creates a <p> tag with different
color text. The style-conscious browser displays all the contents of <p> tag and all its included
tags in that new color. When the <p> tag ends, the color reverts to that of the <wml> tag. For
example, for WML:
<card> tags inherit all <wml> tag properties.
All <card> properties are inherited by <p>, <do>, <onevent>, <timer> tags.
All <p> tag properties are inherited by other wml tags.
This inheritance is not restricted to its immediate child tags, but can cascade further down.
Also note that some inherited properties may not have any meaning in the scope of the child
tag. For example, a background color defined for a <card> tag has no meaning for a <onevent>
tag that has no visual rendering.
Zobrazit stránku 175
1 2 ... 171 172 173 174 175 176 177 178 179 180 181 ... 205 206

Komentáře k této Příručce

Žádné komentáře