首页 > 其他 > 详细

浮动与clear测试

时间:2020-04-05 12:26:17      阅读:72      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>浮动</title>
    </head>
    <body>
        <div style="width: 200px; height: 200px; background-color: red; float: left;"></div>
        <div style="width: 200px; height: 200px; background-color: blue; float: left;"></div>
        <div style="width: 200px; height: 200px; background-color: yellow; float: left;"></div>
        <div style="clear: left; width: 500px; height: 500px; background-color: black;"></div>
        <div style="width: 200px; height: 200px; background-color: gold; float: left;"></div>
        <div style="width: 200px; height: 200px; background-color: green; float: left;"></div>
    </body>
</html>

技术分享图片

 

浮动与clear测试

原文:https://www.cnblogs.com/yxfyg/p/12636215.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!