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,16 @@
skew 和写属性
translate: 根据左(X轴)和顶部(Y轴)位置给定的参数,从当前元素位置移动。
translate(10px,20px)
rotate: 旋转一定的角度
rotate(90deg)
scale(x,y): 缩放元素
zoom
skew 倾斜
transform-origin 改变旋转中心点的位置

View File

@@ -0,0 +1,52 @@
<!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>flex</title>
<style>
ul,
body {
margin: 0;
padding: 0;
list-style: none;
}
ul {
height: 40px;
background: #f5f5f5;
display: flex;
align-items: center;
justify-content: space-around;
}
ul li {
}
</style>
</head>
<body>
<ul>
<li>安全</li>
<li>新闻</li>
<li>测试</li>
<li>文章</li>
<li>娱乐</li>
<li>安全</li>
<li>新闻</li>
<li>测试</li>
<li>文章</li>
<li>娱乐</li>
<li>安全</li>
<li>新闻</li>
<li>测试</li>
<li>文章</li>
<li>娱乐</li>
</ul>
</body>
</html>

View File

@@ -0,0 +1,30 @@
<!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>
.box {
width: 100px;
height: 100px;
background: red;
transition: all 1s ease;
}
.box:hover {
width: 200px;
height: 200px;
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>

View File

@@ -0,0 +1,49 @@
<!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>
.box {
width: 100px;
height: 100px;
background: yellow;
animation: huhg 1s ease 2s infinite alternate;
}
@keyframes huhg {
/* from {
width: 200px;
height: 200px;
}
to {
width: 400px;
height: 400px;
} */
0% {
width: 200px;
height: 200px;
}
50% {
width: 50px;
height: 50px;
}
100% {
width: 400px;
height: 400px;
}
}
</style>
</head>
<body>
<div class="box">
</div>
</body>
</html>

View File

@@ -0,0 +1,46 @@
<!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>
body {
margin: 0;
}
.box {
width: 125px;
height: 125px;
border: 1px solid #000;
float: left;
box-sizing: border-box;
}
@media screen and (min-width: 320px) and (max-width: 359px) {
.box {
width: 106.6px;
height: 106.6px;
}
}
@media screen and (min-width: 401px) and (max-width: 414px) {
.box {
width: 138px;
height: 138px;
}
}
</style>
</head>
<body>
<div class="box "></div>
<div class="box "></div>
<div class="box "></div>
</body>
</html>

View File

@@ -0,0 +1,36 @@
CSS3 多媒体查询
flex 实现布局自适应的
尺寸兼容 rem
13 个属性
display: flex; 开启
12 个
应用在父元素上 6
【1重】align-items 有单行文字的时候,设置元素在Y轴上对齐方式
【1重】justify-content 设置元素在X轴上对齐方式
【2重】flex-direction 设置元素的排列方向
【2重】flex-wrap 设置元素一行排列不下的时候如何换行
flex-flow 是 flex-direction 和 flex-wrap 的简写
align-content 有多行文字的时候,设置元素在Y轴上对齐方式
应用在子元素上 6
order 设置元素的排序,数值越小,越靠前
【2重】flex-grow 设置元素的放大比例
【2重】flex-shrink 设置元素的缩小比例
0 : 表示不运行缩小,保持原本的比例
flex:flex-grow flex-shrink flex-basis 和简写
align-self 允许单个元素采用不同的对齐方式
flex-basis 设置元素宽度