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> <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;
}
最终实现页面