thomasliew / nianyiGitalk

0 stars 0 forks source link

简写CSS背景属性 | 念一 #23

Open thomasliew opened 2 years ago

thomasliew commented 2 years ago

https://thomasliew.gitee.io/nianyi-static/2022/04/20/a55a09dc2afe.html

1background: url("xxx.jpg") no-repeat center left/contain; url 是否循环 位置 尺寸 如果位置和尺寸只写一组那么就是位置,尺寸走缺省值;俩都写中间用/分隔 位置:垂直 水平 尺寸:垂直 水平 1background: url("xxx.jpg") #333 no-repeat center