HTML leyenda propiedad align
Ejemplos
En las partidas alineado a la derecha:
<form>
<fieldset>
<legend align="right">Personalia:</legend>
Name: <input type="text" size="30"><br>
Email: <input type="text" size="30"><br>
Date of birth: <input type="text" size="10">
</fieldset>
</form>
<fieldset>
<legend align="right">Personalia:</legend>
Name: <input type="text" size="30"><br>
Email: <input type="text" size="30"><br>
Date of birth: <input type="text" size="10">
</fieldset>
</form>
Trate »
Soporte para el navegador
Además de la Opera, los otros navegadores soportan grandes valores de atributo align "izquierda" y "derecha". Casi no hay grandes navegadores soportan el valor de "abajo".
Definición y Uso
HTML5 no es compatible con el <legend> atributo align. Usar CSS en su lugar.
En HTML 4.01, <legend> El atributo de alineación está en desuso .
atributo align especifica la alineación del título de campos.
gramática
<legend align="left|right|top|bottom">
propiedad Valor
值 | 描述 |
---|---|
left | 对标题进行左对齐(默认)。 |
right | 对标题进行右对齐。 |
top | 对标题进行上对齐。 |
bottom | 对标题进行下对齐。 |
etiqueta <legend> HTML