11.5总结



定位布局:

1、相对定位 position:relative  搭配left/right/top/bottom   相对于本元素应该在的位置定位

2、绝对定位:position:absolute  相对于有position样式的父元素定位  最终找到body停止

3、固定定位:position:fixed   相对于屏幕大小定位

 

CSS3:

transform: translate(50px,50px);  移动

transition: transform 2s;  过渡

transform: rotate(360deg);  旋转

transform: scale(2,2);  缩放

background-image: linear-gradient(red, blue);  颜色渐变

posted @ 2021-11-05 16:32  阿宁5813  阅读(27)  评论(0)    收藏  举报