实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>css float 实例 - 自学教程(runoops.com)</title> <style> .thumbnail { float: left; width: 110px; height: 90px; margin: 5px; } </style> </head> <body> <h3>图片库</h3> <p>试着调整窗口,看看当图片没有足够的空间会发生什么。</p> <img class="thumbnail" src="//demo.runoops.com/static/img/klematis_small.jpg" width="107" height="90"> <img class="thumbnail" src="//demo.runoops.com/static/img/klematis2_small.jpg" width="107" height="80"> <img class="thumbnail" src="//demo.runoops.com/static/img/klematis3_small.jpg" width="116" height="90"> </body> </html>
运行结果: