查看文件: t3.php
大小: 1.01 KB
类型: application/octet-stream
<!DOCTYPE html> <html> <head> <title>DIVCSS5实例 DIV与DIV覆盖</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style> .thinkcss{position:relative;width:100%;height:100%;border:1px solid #F00} .boxa{position:absolute;width:100%;height:100%;bottom:0;left:0px;background:#ccc} .boxb{ margin:0 auto; width:400px;} .boxa-l{ float:left; width:100px; height:80px; border:1px solid #F00} .boxa-r{ float:left; width:100px; height:80px; border:1px solid #F00} .boxb{ border:1px solid #000; height:40px; background:#999} .clear{ clear:both} </style> </head> <body> <div class="boxa" style="height:100%"> <? for($v=1;$v<11;$v++){?> <div class="boxa-l">内容12</div> <div class="boxa-r">内容2右2</div> <div class="boxa-l">内容1</div> <div class="boxa-r">内容2右</div> <div class="boxa-l">内容左</div> <div class="boxa-r">内容右</div> <? } ?> <div class="clear"></div> </div> <div class="boxb">boxb盒子里的内容</div> </body> </html>
保存
取消
返回文件列表