14.渐变色:inear-gradient(90deg, red, blue,yellow);
15.border-radius: 5px;
圆角
16.box-shadow: 3px(水平方向向右多少) 3px(垂直方向向下多少) 10px(向外扩散多少) red; 阴影
17.text-align: center;
文字居中
18.font-size: 30px;
字体大小
19.opacity: 0.6
;透明度
20.line-height: 30px;
行高
21.class 可以一次命名好几个,只需要用空格隔开
<div class="st2 chosed">3</div>
22.
是换行
23.点击F12,再点sources可以在里边找网页上的图片
点Network在刷新这个页面,可以看到这个页面调用的所有东西
登录之后的钥匙放在Application->cookies中
24.transform: rotate(*deg);
旋转*度
25.加一个小三角可以建一个正方形的div然后旋转45度
26.display:none;
是隐藏
display:block;
是显示
具体实例:
<!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>
<style>
.st1 {
height: 300px;
width: 90%;
background-color: #2ac;
margin-left: 5%;
margin-top: 50px;
border-radius: 10px;
box-shadow: 0px 0px 25px;
text-align: center;
color: #fff;
font-size: 80px;
opacity: 0.6;
line-height: 300px;
padding: 20px;
}
</style>
</head>
<body style="background-image:url('images/aa.png');background-size: cover;">
<div class="st1">科比·比恩·布莱恩特</div>
<input type="text">
<input type="button" value="确定">
</body>
</html>