HTML <legend> ±êÇ©µÄ align ÊôÐÔ

ʵÀý

×éºÏ±íµ¥ÖеÄÏà¹ØÔªËØ£º

<form>
  <fieldset>
    <legend align="right">health information</legend>
    height: <input type="text" />
    weight: <input type="text" />
  </fieldset>
</form>

Ç××ÔÊÔÒ»ÊÔ

¶¨ÒåºÍÓ÷¨

align ÊôÐԹ涨 fieldset ÖбêÌâµÄ¶ÔÆë·½Ê½¡£

ä¯ÀÀÆ÷Ö§³Ö

ËùÓÐä¯ÀÀÆ÷¶¼Ö§³Ö align ÊôÐ﵀ "left" ºÍ "right" Öµ£¬³ýÁË opera¡£"bottom" ÖµÔÚËùÓÐä¯ÀÀÆ÷Öж¼²»Æð×÷Óá£

¼æÈÝÐÔ×¢ÊÍ

ÔÚ HTML 4 ÖУ¬²»ÔÞ³ÉʹÓà align ÊôÐÔ£»ÔÚ XHTML Strict DTD ÖУ¬²»Ö§³Ö¸ÃÊôÐÔ¡£

Óï·¨

<legend align="value">

ÊôÐÔÖµ

Öµ ÃèÊö
left ¶Ô±êÌâ½øÐÐ×ó¶ÔÆë¡£
right ¶Ô±êÌâ½øÐÐÓÒ¶ÔÆë¡£
top ¶Ô±êÌâ½øÐÐÉÏ¶ÔÆë¡£
bottom ¶Ô±êÌâ½øÐÐÏÂ¶ÔÆë¡£
VUE