编辑下面的代码:【加编码】
<html> <head> <style> img.ex1 { position:absolute; bottom:0px; } img.ex2 { position:relative; bottom:-100px; } </style> </head> <body> <img class="ex1" src="/demo/logocss.gif" width="95" height="84"> <h1>This is a heading</h1> <img class="ex2" src="/demo/logocss.gif" width="95" height="84"> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂