box-shadow
box-shadow: [?内部inset/外部] [X轴偏移量] [Y轴偏移量] [模糊半径] [扩散半径] [color]
text-shadow
text-shadow: [x方向偏移量] [y方向偏移量] [模糊半径] [color]
border-radius
background
- 雪碧图动画
- 背景图尺寸适应
- 控制背景图位置:background-position: center center
- 背景大小:background-size: 100% 100%; (覆盖cover,完整显示contain)
- 重复background-repeat
clip-path
对内容裁剪
<div class="container"></div><style>.container {width: 400px;height: 300px;background: url(./public/favicon.ico);background-size: cover;background-position: center center;background-repeat: no-repeat;padding: 10px;/* 在100,100地方,有半径为50px的圆形 */clip-path: circle(50px at 100px 100px);/* 动画 */transition: clip-path .4s;}.container:hover {clip-path: circle(80px at 100px 100px);}</style>
transform
- translate
- scale
- skew
- rotate
- 3D
transform属性不可以随便交换
transform: rotate(30deg) translateX(30px)和transform: translateX(30px) ``rotate(30deg)是不一样的
