Adobe Dreamweaver API Reference CS5 Manuel d'utilisateur Page 349

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 533
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 348
1 2 ... 344 345 346 347 348 349 350 351 352 353 354 ... 532 533

Commentaires sur ces manuels

Pas de commentaire