编辑下面的代码:【加编码】
<html> <body> <h4>Image with default alignment (align="bottom"):</h4> <p>This is some text. <img src="/demo/smiley.gif" alt="Smiley face" width="32" height="32"> This is some text.</p> <h4>Image with align="middle":</h4> <p>This is some text. <img src="/demo/smiley.gif" alt="Smiley face" align="middle" width="32" height="32"> This is some text.</p> <h4>Image with align="top":</h4> <p>This is some text. <img src="/demo/smiley.gif" alt="Smiley face" align="top" width="32" height="32"> This is some text.</p> <p><b>Note:</b> The align attribute is deprecated in HTML 4, and is not supported in HTML5. Use CSS instead.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂