简单使用CSS与html制作了一个小网页

复制代码
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>soda</title>
    <link rel="stylesheet" type="text/css" href="justify.css">
</head>    

<body class="flex">
    <!--侧边栏-->
    <div style="padding:10px;align-items:center;justify-content: center;border-bottom: 1px solid;">
        <img src="./咩咩.jpg" width="100" height="100" />
        <div style=" color: aliceblue;margin-left: 20px;margin-top: 10px; margin-bottom: 30px;" >eMAY</div>
        <div style="font-style: inherit;margin-bottom: 5px;">导航栏</div>
        <div class="daoHang marginb">学习html</div>
        <div class="daoHang marginb">学习CSS</div>
        <div class="daoHang marginb">学习VUE</div>
    </div>
    <!--主区域-->
    <div class="flex1 flex column marginl">
        <!--头部栏-->
        <div style="height: 30px;" class="bgwhite blockst1"> something </div>
        <!--内容区-->
        <div class="flex1 margint">
            <div> 写点什么呢? </div>
        </div>
    </div>
</body>



</html>
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
body{
    margin: 0;
    height: 100vh;
    background-color: rgb(197, 218, 218);
}
/*{
    border: 1px solid rgb(11, 8, 11);
}*/
.one{
    border-style: dotted;
    border-color: rgb(24, 210, 27);
    border-width: 2px;
}
.flex{
    display: flex;
}
.flex1{
    flex:1;
}
.blockst1{
    background-color: rgb(177, 226, 207);
    text-align: center;
    text-shadow: rgb(0, 0, 0);
    font-size: large;
    padding: 40px;
}
.blockst2{
    max-width: 700px;
    margin: 30px auto;
    padding: 15px;
    line-height: 1.7;
}
.column{
    flex-direction: column;
}
/* 导航条 */
.daoHang {
    padding: 10px 20px;
    border-bottom: 1px solid rgb(201, 201, 201);
    font-size: 14px;
    color: #666;
}
.bgwhite{
    background-color: aliceblue;
}
.marginb{
    margin-bottom: 5px;
}
.margint{
    margin-top: 15px;
}
.marginl{
    margin-left: 5px;
}
.marginr{
    margin-right: 5px;
}

  

posted on   eMAYwuwawu  阅读(219)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示