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,51 @@
<!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>
.box {
width: 300px;
height: 300px;
background: red;
position: relative;
overflow: hidden;
}
.box_2 {
width: 100px;
height: 100px;
background: yellow;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.box_2:hover{
transform: scale(2.5);
}
.aaaaa {
font-size: 8px;
/* transform: scale(0.8);
display: inline-block;
transform-origin: 0 50%; */
zoom: 0.8;
}
</style>
</head>
<body>
<div class="box">
<div class="box_2">222</div>
<span>测试</span>
<span class="aaaaa">哈哈哈</span>
</div>
</body>
</html>

View File

@@ -0,0 +1,50 @@
<!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>
body {
margin: 0;
}
.box {
width: 187.5px;
height: 187.5px;
float: left;
}
.box_1 {
background: red;
}
.box_2 {
background: yellow;
}
@media screen and (min-width: 413px) {
.box_1,
.box_2 {
width: 207px;
height: 207px;
}
}
@media screen and (max-width: 320px) {
.box_1,
.box_2 {
width: 160px;
height: 160px;
}
}
</style>
</head>
<body>
<div class="box box_1"></div>
<div class="box box_2"></div>
</body>
</html>

View File

@@ -0,0 +1,16 @@
平滑过渡:元素从一种状态到另外一种状态
transition
css3
transform
translate让元素平移X,Y
translateX
translateY
rotate: 让元素旋转
rotate: 280deg
scale: 让元素宽高进行缩放
scaleX
scaleY