关于Html5
  • 板块灌水区
  • 楼主Error_Eric
  • 当前回复3
  • 已保存回复3
  • 发布时间2021/6/27 20:39
  • 上次更新2023/11/4 21:23:43
查看原帖
关于Html5
217300
Error_Eric楼主2021/6/27 20:39

为什么我会在洛谷问H5的问题?

关于这样一个H5源码,为什么四个圆圈是并排排列的而不是 2×22\times 2 排列的?

<!DOCTYPE html>
<html>
    <head>
        <style>
            div.circ{float: left;}
            body{
                background-color: black;
            }
            .circ{
                border:2px solid #a1a1a1;
                border-radius:25px;
                padding:3px;
                margin: 15px;
                color: #dddddd;
                background:#dddddd;
                width:40px;
                height:40px;
                /*display: inline;*/
            }
        </style>
    </head>
    <body>
        
        <div>
            <div class="circ h1 l1"></div>
            <div class="circ h1 l2"></div>
        </div>
        <div>
            <div class="circ h2 l1"></div>
            <div class="circ h2 l2"></div>
            </div>

    </body>
</html>
2021/6/27 20:39
加载中...