backround-repeat:no repeat属性是起什么作用的
来源:2-1 轮播图样式(1)
biudiudiu
2019-10-23 07:56:35

backround-repeat:no repeat属性是起什么作用的
1回答
好帮手慕酷酷
2019-10-23
同学你好!background-repeat:no repeat的作用就是不重复显示图片。
因为如果不指定background-repeat为no repeat则默认是会是repeat,背景图像将在垂直方向和水平方向重复显示。所以为了只显示一个图片需要设定background-repeat为no repeat属性。
如果我的回答解决了你的疑惑,请采纳,祝学习愉快~
相似问题