Adobe Dreamweaver API Reference CS5 Uživatelský manuál Strana 349

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 533
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 348
344
DREAMWEAVER API REFERENCE
Page content
Last updated 8/27/2013
elem.isInlineElement()
Availability
Dreamweaver CS3.
Description
Checks whether the element has an inherent or specified display value of 'inline'.
Arguments
None.
Returns
A Boolean value indicating whether the object is an inline element.
Example
[...]
var DOM = dw.getDocumentDOM();
var floats = issueUtils.getFloats(DOM.body);
var next = null;
for (var i=0; i < floats.length; i++){
next = floats[i].nextSibling;
// if nextSibling of float is a text node or an inline element
if (next && (next.nodeType == Node.TEXT_NODE ||
(next.nodeType == Node.ELEMENT_NODE && next.isInlineElement()))){
// do something
}
}
[...]
elem.isHeaderElement()
Availability
Dreamweaver CS3.
Description
Checks whether the element is one of the following tags: h1, h2, h3, h4, h5, h6.
Arguments
None.
Returns
A Boolean value indicating whether the object is a header element.
Zobrazit stránku 348
1 2 ... 344 345 346 347 348 349 350 351 352 353 354 ... 532 533

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

Žádné komentáře