Légende du styleSide Property
Exemple
Déplacez la légende du tableau vers le bas du tableau :
document.getElementById("myCap").style.captionSide = "bottom";
Définition et utilisation
La propriété captionSide définit ou renvoie la position de la légende du tableau.
Prise en charge du navigateur
Property | |||||
---|---|---|---|---|---|
captionSide | Yes | 9.0 | Yes | Yes | Yes |
Syntaxe
Renvoyez la propriété captionSide :
object.style.captionSide
Définissez la propriété captionSide :
object.style.captionSide = "top|bottom|initial|inherit"
Valeurs de propriété
Value | Description |
---|---|
top | Default. Positions the table caption above the table |
bottom | Positions the table caption below the table |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Détails techniques
Valeur par défaut: | Haut |
---|---|
Valeur de retour : | Une chaîne, représentant la position de la légende du tableau |
Version CSS | CSS2 |
Plus d'exemples
Exemple
Renvoyez la légende du tableau :
alert(document.getElementById("myCap").style.captionSide);
Pages connexes
Tutoriel CSS : Tableau CSS
Référence CSS : propriété côté légende
❮ Objet de style