编辑下面的代码:【加编码】
<html> <head> <style> img.top {vertical-align:text-top;} img.bottom {vertical-align:text-bottom;} </style> </head> <body> <p>An <img src="/demo/logo.png" alt="ziqiangxuetang" width="270" height="50"> image with a default alignment.</p> <p>An <img class="top" src="/demo/logo.png" alt="ziqiangxuetang" width="270" height="50"> image with a text-top alignment.</p> <p>An <img class="bottom" src="/demo/logo.png" alt="ziqiangxuetang" width="270" height="50"> image with a text-bottom alignment.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂