查看文件: t4.php
大小: 885 字节
类型: application/octet-stream
<!DOCTYPE html> <html> <head> <title>DIVCSS5实例 DIV与DIV覆盖</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style> .clear{ clear:both} .flex { display: flex; height: 100px; padding: 2px; //background-color: #61a0f8; flex-wrap: nowrap; } .item { flex: 0 0 100px; // background-color: #f08bc3; margin: 2px; display: flex; justify-content: center; align-items: center; // color: white; font-size: 2rem; } </style> </head> <body> <div class="clear"></div> <div class="clear"></div> <div class="flex"> <? for($v=1;$v<11;$v++){?> <div class="item"><?= $v ?></div> <? } ?> </div> <div class="flex"> <? for($v=1;$v<11;$v++){?> <div class="item"><?= $v ?></div> <? } ?> </div> <div class="boxb">boxb盒子里的内容</div> </body> </html>
保存
取消
返回文件列表