first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
<!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>keyframes</title>
<style>
* {
margin: 0;
padding: 0;
}
.box {
width: 200px;
height: 200px;
background: red;
animation: test 2s ease infinite alternate;
}
@keyframes test {
0% {
width: 200px;
height: 200px;
background: red;
}
25% {
width: 250px;
height: 250px;
background: yellow;
}
50% {
width: 300px;
height: 300px;
background: green;
}
100% {
width: 350px;
height: 350px;
background: blue;
}
}
</style>
</head>
<body>
<div class="box">
</div>
</body>
</html>

View File

@@ -0,0 +1,67 @@
<!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>media</title>
<style>
* {
margin: 0;
padding: 0;
}
.center div {
float: left;
height: 100%;
}
.center {
overflow: hidden;
width: 1200px;
margin: 0 auto;
height: 600px;
}
.left {
width: 200px;
background: red;
}
.content {
width: 800px;
background: #000;
}
.right {
width: 200px;
background: blue;
}
@media screen and (max-width: 900px) {
.right {
display: none;
}
}
@media screen and (max-width: 650px) {
.right {
display: none;
}
.left {
display: none;
}
}
</style>
</head>
<body>
<div class="center">
<div class="left"></div>
<div class="content"></div>
<div class="right"></div>
</div>
</body>
</html>

View File

@@ -0,0 +1,10 @@
translate(x,y) 让元素在X,Y轴平移
rotate 让元素按照中心轴旋转
scale(width,height) 让元素放大缩小
media 媒体查询 (响应式):根据访问设备的屏幕大小,动态显示合适的布局给用户看
已经不用了