background:pink;图⽚在背景图上⾯
background-image:url(food.jpg);⼀张图⽚铺满⼀⾏background-repeat:repeat-x;同⼀张图⽚多张铺满横向background-repeat:repeat-y;同⼀张图⽚多张铺满纵向
background-repeat:no-repeat;只在左上⾓显⽰⼀张按图⽚原来的⼤⼩显⽰
background-attachment:fixed;把图⽚固定在某处,图⽚不随着滚动条的滚动上下移动 background-position:center;图⽚位置居中
⼈⽣总有许多偶然和巧合,两条平⾏线,也可能会有交汇的⼀天。 ⼈⽣⼜有许多意外和错过,握在⼿⾥的风筝,也会突然断了线……。
精确控制图⽚显⽰位置:
background-position:center enter;
⽤精确的像素来确定位置: