HTML 전설 정렬 속성
예
오른쪽 정렬 제목에 :
<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>
»시도
브라우저 지원
오페라 외에도 다른 주요 브라우저 정렬 속성 "좌측"및 "우측"값을 지원한다. 거의 주요 브라우저는 "바닥"값을 지원하지 않습니다.
정의 및 사용
HTML5는 <전설> 정렬 속성을 지원하지 않습니다. CSS를 대신 사용합니다.
HTML 4.01에서 <전설> align 속성은 사용되지 않습니다 .
정렬 속성은 FIELDSET 제목 정렬을 지정합니다.
문법
<legend align="left|right|top|bottom">
속성 값
值 | 描述 |
---|---|
left | 对标题进行左对齐(默认)。 |
right | 对标题进行右对齐。 |
top | 对标题进行上对齐。 |
bottom | 对标题进行下对齐。 |
HTML <전설> 태그