<html> <head> <style type="text/css"> img { position:absolute; bottom:0px } </style> </head> <body> <h1>这是标题</h1> <img class="normal" src="http://img.gaodaima.com/paperimg_gaodaima_chengxuyuan.jpg" /> <p>一些文本。一些文本。一些文本。一些文本。一些文本。一些文本。</p> </body> </html>
本文案例为大家展示了《如何使用像素值设置图像的底部边缘》的代码,若要看代码效果请大家点击“运行代码”按钮。
[code]<html> <head> <style type=”text/css”> img { position:absolute; bottom:0px } </style> </head> <body> <h1>这是标题</h1> <img class=”normal” src=”http://img.gaodaima.com/paperimg_gaodaima_chengxuyuan.jpg” /> <p>一些文本。一些文本。一些文本。一些文本。一些文本。一些文本。</p> </body> </html>[/code]