init
This commit is contained in:
110
Html-Css/homework/05-作业.html
Normal file
110
Html-Css/homework/05-作业.html
Normal file
@@ -0,0 +1,110 @@
|
||||
<!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>作业</title>
|
||||
|
||||
<style>
|
||||
|
||||
#app {
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #ccc;
|
||||
padding: 15px;
|
||||
width: 300px;
|
||||
margin: 0 auto;
|
||||
|
||||
}
|
||||
#app .header h1 {
|
||||
font-size: 18px;
|
||||
border-bottom:solid 1px #ccc ;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
#app .header h1 span {
|
||||
padding-left: 15px;
|
||||
color: rgba(200, 200,2000, .6);
|
||||
}
|
||||
ul {
|
||||
padding-left: 0;
|
||||
}
|
||||
ul li {
|
||||
list-style: none;
|
||||
/* display: flex; */
|
||||
align-items: center;
|
||||
margin: 10px 0;
|
||||
|
||||
/* 文本溢出隐藏 */
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
ul li::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
padding-right: 10px 0;
|
||||
|
||||
padding-top: 3px;
|
||||
|
||||
background-image: url(https://static.zzhitong.com/lesson-files/html/img/7-3.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0px 5px;
|
||||
}
|
||||
|
||||
ul li:nth-child(2)::before {
|
||||
background-position: 0px -24px;
|
||||
|
||||
}
|
||||
ul li:nth-child(3)::before {
|
||||
background-position: 0px -52px;
|
||||
|
||||
}
|
||||
ul li:nth-child(4)::before {
|
||||
background-position: 0px -84px;
|
||||
|
||||
}
|
||||
ul li:nth-child(5)::before {
|
||||
background-position: 0px -115px;
|
||||
|
||||
}
|
||||
ul li:nth-child(6)::before {
|
||||
background-position: 0px calc(-115px + -32px);
|
||||
|
||||
}
|
||||
ul li:nth-child(7)::before {
|
||||
background-position: 0px calc(-115px + -32px + -30px);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="app">
|
||||
<div class="header">
|
||||
<h1>潮流排行 <span>Most Read</span></h1>
|
||||
</div>
|
||||
<div class="content">
|
||||
<ul>
|
||||
<li>秋冬拗造型 你也需要一款时髦</li>
|
||||
<li>秋冬拗造型 你也需要一款时髦</li>
|
||||
<li>秋冬拗造型 你也需要一款时髦</li>
|
||||
<li>秋冬拗造型 你也需要一款时髦</li>
|
||||
<li>秋冬拗造型 你也需要一款时髦</li>
|
||||
<li>秋冬拗造型 你也需要一款时髦</li>
|
||||
<li>秋冬拗造型 你也需要一款时髦</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
103
Html-Css/homework/06-作业.html
Normal file
103
Html-Css/homework/06-作业.html
Normal file
@@ -0,0 +1,103 @@
|
||||
<!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>作业</title>
|
||||
|
||||
<style>
|
||||
/* 预留样式 */
|
||||
.border-right {
|
||||
border-right:solid 1px #ccc ;
|
||||
}
|
||||
.border-bottom {
|
||||
border-bottom:solid 1px #ccc ;
|
||||
}
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* 外壳 */
|
||||
#app {
|
||||
box-sizing: border-box;
|
||||
width: 1200px;
|
||||
margin: 0 auto;
|
||||
border: solid 1px #ccc;
|
||||
padding: 10px ;
|
||||
}
|
||||
/* 上面的样式 */
|
||||
#app .top {
|
||||
display: flex;
|
||||
justify-content:center;
|
||||
}
|
||||
#app .top span {
|
||||
border-right: solid 2px #ccc;
|
||||
padding: 0 20px;
|
||||
}
|
||||
#app .top span:nth-child(1) {
|
||||
border-right:none ;
|
||||
padding: 0 20px;
|
||||
}
|
||||
/* 下面样式 */
|
||||
.bottom {
|
||||
margin: top 15px; ;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="app">
|
||||
|
||||
<div class="top">
|
||||
<span>护肤</span>
|
||||
<span>彩妆</span>
|
||||
<span>美发</span>
|
||||
<span>美体</span>
|
||||
<span>香氛</span>
|
||||
<span>肌肤</span>
|
||||
<span>产品</span>
|
||||
<span>唇部</span>
|
||||
<span>精华</span>
|
||||
<span>修护</span>
|
||||
|
||||
</div>
|
||||
<div class="bottom flex">
|
||||
<!-- left -->
|
||||
<div class="flex ">
|
||||
<img class="border-right" src="https://tse2-mm.cn.bing.net/th/id/OIP-C.C38tPmdN8_amlKOTvKp45AHaNK?w=182&h=324&c=7&r=0&o=5&dpr=1.25&pid=1.7" alt="">
|
||||
<div class="border-right">
|
||||
<img class="border-bottom" src="https://tse2-mm.cn.bing.net/th/id/OIP-C.C38tPmdN8_amlKOTvKp45AHaNK?w=182&h=324&c=7&r=0&o=5&dpr=1.25&pid=1.7" alt="">
|
||||
<img src="https://tse2-mm.cn.bing.net/th/id/OIP-C.C38tPmdN8_amlKOTvKp45AHaNK?w=182&h=324&c=7&r=0&o=5&dpr=1.25&pid=1.7" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<!-- right -->
|
||||
<div class="flex">
|
||||
<div class="border-right">
|
||||
<img class="border-bottom" src="https://tse1-mm.cn.bing.net/th/id/OIP-C.Ca5vPlfNKm2z_DCvMe4QqwHaLi?w=182&h=284&c=7&r=0&o=5&dpr=1.25&pid=1.7" alt="">
|
||||
<img class="border-bottom" src="https://tse1-mm.cn.bing.net/th/id/OIP-C.Ca5vPlfNKm2z_DCvMe4QqwHaLi?w=182&h=284&c=7&r=0&o=5&dpr=1.25&pid=1.7" alt="">
|
||||
<img class="border-bottom" src="https://tse1-mm.cn.bing.net/th/id/OIP-C.Ca5vPlfNKm2z_DCvMe4QqwHaLi?w=182&h=284&c=7&r=0&o=5&dpr=1.25&pid=1.7" alt="">
|
||||
</div>
|
||||
<div>
|
||||
<div class="flex">
|
||||
<img class="border-right border-bottom" src="https://tse1-mm.cn.bing.net/th/id/OIP-C.Ca5vPlfNKm2z_DCvMe4QqwHaLi?w=182&h=284&c=7&r=0&o=5&dpr=1.25&pid=1.7" alt="">
|
||||
<img class="border-bottom" src="https://tse1-mm.cn.bing.net/th/id/OIP-C.Ca5vPlfNKm2z_DCvMe4QqwHaLi?w=182&h=284&c=7&r=0&o=5&dpr=1.25&pid=1.7" alt="">
|
||||
</div>
|
||||
<img src="https://tse1-mm.cn.bing.net/th/id/OIP-C.Ca5vPlfNKm2z_DCvMe4QqwHaLi?w=182&h=284&c=7&r=0&o=5&dpr=1.25&pid=1.7" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user