动画、选择器、阴影

1.margin:0 auto;用在块级元素的水平居中。

2.animation:动画名称 花费时间 运动曲线  何时开始  播放次数  是否反方向;

 animation: move 2s ease 0s infinite alternate;
 
3.选择器
img的第一个孩子和最后一个孩子、第n个孩子:
img:first-child{};
img:last-child{};
img:nth-child(n){};
 
4.阴影box- shadow: h- shadow v-shadow blur spread color inset;

 

 

posted @ 2022-05-21 12:07  lain520  阅读(34)  评论(0)    收藏  举报