HTML h1 - h6 propriété align
Exemples
Aligner le titre HTML:
<h1 align="center">这是标题 1</h1>
<h2 align="left">这是标题 2</h2>
<h3 align="right">这是标题 3</h3>
<h4 align="justify">这是标题 4</h4>
<h2 align="left">这是标题 2</h2>
<h3 align="right">这是标题 3</h3>
<h4 align="justify">这是标题 4</h4>
Essayez »
support du navigateur
Tous les principaux navigateurs prennent en charge l'attribut align.
Définition et utilisation
HTML5 ne supporte pas la balise <h1> - <h6> aligner attribut. Utilisez CSS à la place.
Dans HTML 4.01, <h1> - <h6> L'attribut align est obsolète .
attribut align spécifie l'alignement horizontal du titre.
notes de compatibilité
<H1> - <h6> L'attribut align est obsolète. Utilisez CSS à la place.
Syntaxe CSS: <style h1 = "text-align: right">
CSS Exemple: définir l'alignement du titre
Dans notre tutoriel CSS vous pouvez trouver plus d' informations sur les attributs texte-align détails.
grammaire
<h1 align="left|right|center|justify">
Valeur de la propriété
值 | 描述 |
---|---|
left | 左对齐标题(默认值)。 |
right | 右对齐标题。 |
center | 居中对齐标题。 |
justify | 标题有合理的边距。 |
HTML <h1-h6>