3G实验室前端组考核案例

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>Document</title>
    <link rel="stylesheet" href="index.css">
</head>

<body>
    <div class="all">
        <div class="nav">
            <div class="logo">
                <h1>logo</h1>
            </div>
            <div class="lang">
                English
            </div>
            <div class="daohang">
                导航
            </div>
        </div>
        <div class="main">
            <div class="house">
                <div class="tar"></div>
                <div class="fangkuai"></div>
                <div class="col_26 p1"></div>
                <div class="col_26 p2"></div>
                <div class="col_26 p3"></div>
            </div>
            <div class="account">
                <div class="denglu">
                    <div class="shurukuang">
                        用户名:<input type="text"><br>
                        密码: <input type="text" name="" id="">
                        <br><br><br>
                        <button>登录</button>
                        <button>注册</button>
                    </div>
                    <div class="time">
                        现在是<input type="time"><br>
                        今年是<input type="date"><br>
                        <a href="#">111111</a> &nbsp;<i><strong>12345</strong></i>
                    </div>
                    <div class="kong"></div>
                </div>

            </div>
            <div class="pic"><img src="1_03.jpg" alt=""></div>
            <div class="last"></div>
        </div>
        <div class="footer"></div>
    </div>

</body>

</html>

CSS

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}



.all {
    text-align: center;
    width: 770px;
    height: 596px;
    margin: 70px auto;
}

.nav {
    position: relative;
    width: 770px;
    height: 110px;
}

.logo {
    width: 220px;
    height: 110px;
    background-color: #ffc1cc;
    text-align: center;
}

.lang {
    position: absolute;
    top: 0;
    right: 0;
    width: 84px;
    height: 54px;
    background-color: #9ff683;
}

.daohang {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 545px;
    height: 53px;
    background-color: #9ff683;
}

.main {
    position: relative;
    margin-top: 7px;
    width: 770px;
    height: 440px;
}


.main>div {
    display: inline-block;
}

.house {
    position: relative;
    float: left;
    width: 243px;
    height: 440px;
    background-color: #f7e787;
}

.tar {
    position: absolute;
    left: 15px;
    width: 0;
    height: 0;
    border-top: 100px solid transparent;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 100px solid red;
}

.fangkuai {
    position: absolute;
    top: 200px;
    left: 45px;
    border: 70px solid #525252;
}

.col_26 {
    width: 26px;
    height: 26px;
    border: 1px solid #525252;
    border-radius: 26px;
}

.p1 {
    position: absolute;
    top: 60px;
    left: 13px;
}

.p2 {
    position: absolute;
    top: 90px;
    left: 20px;
}

.p3 {
    position: absolute;
    top: 115px;
    left: 35px;
}

.account {
    position: relative;
    float: left;
    margin-left: 8px;
    width: 410px;
    height: 390px;

}

.denglu {

    position: relative;
    width: 408px;
    height: 221px;
    background-color: #62f5ef;
}

.shurukuang {
    position: absolute;
    top: 50px;
    left: 50px;
}

.denglu button {
    width: 64px;
    height: 32px;
    margin-left: 20px;
    background-color: #ffc1cc;
    border: 1px solid transparent;
    border-radius: 10px;
}

.time {
    float: left;
    position: absolute;
    top: 228px;
    float: left;
    width: 410px;
    height: 115px;
    background-color: #62f5ef;
}

.time a {
    text-decoration: line-through;
}

.kong {
    float: left;
    position: absolute;
    top: 347px;
    width: 410px;
    height: 46px;
    background-color: #62f5ef;
}

.pic {
    position: absolute;
    top: 0;
    right: 0;
    float: left;
    width: 105px;
    height: 392px;
    background-color: #6395ec;
}

.pic img {
    padding-top: 150px;

}

.last {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 523px;
    height: 43px;
    background-color: pink;
}

.footer {
    width: 770px;
    height: 36px;
    background-color: #f7e787;
    margin-top: 7px;
}

最终实现页面

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值