实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>css 实例 - 自学教程(runoops.com)</title> <style> img.top {vertical-align:text-top;} img.bottom {vertical-align:text-bottom;} </style> </head> <body> <p>一个<img src="//demo.runoops.com/static/img/logo.png" alt="runoops" width="270" height="50" />默认对齐的图像。</p> <p>一个<img class="top" src="//demo.runoops.com/static/img/logo.png" alt="runoops" width="270" height="50" /> text-top 对齐的图像。</p> <p>一个<img class="bottom" src="//demo.runoops.com/static/img/logo.png" alt="runoops" width="270" height="50" /> text-bottom 对齐的图像。</p> </body> </html>
运行结果: