实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
AخA
 
1
<!DOCTYPE html>
2
<html>
3
    <head>
4
        <meta charset="utf-8"> 
5
        <title>手册网(www.shouce.ren)
6
        </title>
7
        <style> 
8
            #main .box{
9
                width:500px;
10
                height:500px;
11
                border:1px solid black;
12
            }
13
            .item{
14
                width:100px;
15
                height:100px;
16
                border-radius:50px;
17
                background:#000000;
18
            }
19
            /* flex样式 */
20
            .box {
21
                display: flex;
22
                justify-content: flex-end;
23
            }
24
        </style>
25
    </head>
26
    <body>
27
        <div id="main">
28
            <div class="box">
29
                <span class="item">
30
                </span>
31
            </div>
32
        </div>
33
    </body>
34
</html>