w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: HTML DOM alignÊôÐÔ
The align property sets or returns how to align an image according to the surrounding text.
alignÊôÐÔ¿ÉÉèÖûò·µ»ØÔõÑùÈÃͼƬ¸ù¾ÝÖÜΧÎÄ×ÖÀ´½øÐÐ¶ÔÆë
imageObject.align=left|right|top|middle|bottom |
The following example aligns the image to the right according to the surrounding text:
ÏÂÃæµÄ¾ÙÀý½«Í¼Æ¬¶ÔÆëµ½ÎÄ×ÖµÄÓұߣº
<html> <img id="compman" src="compman.gif" alt="Computerman" /> <p>Some text. Some text. Some text. Some text.</p> <script type="text/javascript"> </body> |
Set the alignment of an <image> element
ÉèÖÃ<image>ÔªËØµÄ¶ÔÆë·½Ê½
ÆÀÂÛ (0)
All