Files
ClassContent/历届学生/front-end-team-10/每天课程/2023-02-08/index2.html
2024-09-27 02:06:13 +08:00

141 lines
3.3 KiB
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>css 属性练习</title>
<style>
body {
height: 3000px;
}
@font-face {
font-family: "test";
src: url("./shangshouzhaocaimaoti.ttf");
}
.font {
font-size: 30px;
font-family: "test";
}
.demo {
width: 200px;
height: 200px;
background: red;
text-align: center;
line-height: 200px;
}
.demo2 {
width: 80px;
height: 80px;
background: blue;
vertical-align: middle;
display: inline-block;
box-shadow: 7px 4px 6px #000;
}
.demo2+p {
display: inline-block;
text-shadow: 13px 6px 2px #f00;
}
a {
text-decoration: none;
}
.back {
width: 300px;
height: 300px;
background-image: url("https://upload.jianshu.io/users/upload_avatars/301940/189d69dd-af7c-4290-9e2c-89e98acf3603.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/96/h/96/format/webp");
background-repeat: no-repeat;
background-color: #8d8d8d;
background-position: 31px 33px;
background-size: cover;
}
.banner {
height: 400px;
background-image: url("https://sqimg.qq.com/qq_product_operations/im/2015/fisrtbg.jpg");
background-attachment: fixed;
}
.roll {
height: 300px;
width: 400px;
background: #8d8d8d;
overflow-y: scroll;
}
</style>
</head>
<body>
<p class="font">你好 aaaa 00001123344</p>
<div class="demo">
你好啊
</div>
<a href="">你哈哈哈啊啊哈</a>
<div class="demo2"></div>
<p>用户昵称</p>
<div class="back"></div>
<div class="banner">
</div>
<div class="roll">
<p>文字1</p>
<p>文字2</p>
<p>文字3</p>
<p>文字4</p>
<p>文字5</p>
<p>文字6</p>
<p>文字7</p>
<p>文字8</p>
<p>文字9</p>
<p>文字10</p>
<p>文字11</p>
<p>文字12</p>
<p>文字13</p>
<p>文字14</p>
<p>文字15</p>
<p>文字16</p>
<p>文字17</p>
<p>文字18</p>
<p>文字19</p>
<p>文字20</p>
<p>文字21</p>
<p>文字22</p>
<p>文字23</p>
<p>文字24</p>
<p>文字25</p>
<p>文字26</p>
<p>文字27</p>
<p>文字28</p>
<p>文字29</p>
<p>文字30</p>
<p>文字31</p>
<p>文字32</p>
<p>文字33</p>
<p>文字34</p>
<p>文字35</p>
<p>文字36</p>
<p>文字37</p>
<p>文字38</p>
<p>文字39</p>
<p>文字40</p>
<p>文字41</p>
<p>文字42</p>
<p>文字43</p>
<p>文字44</p>
<p>文字45</p>
<p>文字46</p>
<p>文字47</p>
<p>文字48</p>
<p>文字49</p>
<p>文字50</p>
</div>
</body>
</html>