HTML propriedade lenda align
Exemplos
Nos títulos alinhado à direita:
<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>
tente »
Suporte a navegadores
Além de Opera, os outros principais navegadores suportam atributos e valores de alinhamento "esquerda" e "direita". Quase sem grandes navegadores suportam o valor "bottom".
Definição e Uso
O HTML5 não suporta o <legend> atributo align. Use CSS em vez disso.
Em HTML 4.01, <legend> O atributo align está obsoleta .
alinhar atributo especifica o alinhamento do título fieldset.
gramática
<legend align="left|right|top|bottom">
Valor de propriedade
值 | 描述 |
---|---|
left | 对标题进行左对齐(默认)。 |
right | 对标题进行右对齐。 |
top | 对标题进行上对齐。 |
bottom | 对标题进行下对齐。 |
tag HTML <legend>