The background-repeat CSS property sets how background images are repeated. A background image can be repeated along the horizontal and vertical axes, or not repeated at all.
horizontal [,hɔri'zɔntl] 水平的 hover ['hʌvə] 鼠标指针经过或称为悬浮状态 I image ['imidʒ] 图像 important [im'pɔ:tənt] 重要的 indent [in'dent] 缩进 index ['indeks] 索引 inline 行内 inner 内部的 italic [i'tælik] 意大利体,斜体 J jpg 一种图像格式 justify ...
The horizontal size of the background image, in this case50%of the width of the element (not of the original image size). 第一个值50%是指背景图为元素宽度的50%(并不是原始图的尺寸)Can also be set in absolute (px) or relative (em) units, can beauto(original size, default),coverorc...
background-image 背景图片 (添加路径 url()) 同一个元素可以拥有多个背景,用逗号分开,先写的背景在上面 background-repeat 背景图片平铺方式 no-repeat(不平铺) repeat(平铺) repeat-x (水平平铺) repeat-y (纵向平铺) background-postion 背景定位 关键字 x:left center right y:top center bottom 数值 x:...
目录1.颜色(Color)1.1.具名颜色1.2.RGB1.3.HSL2.背景(Background)2.1.背景色(background-color)2.2.背景裁剪(background-clip)2.3.背景图(background-image)2.4.背景定位(background-position)2.5.背景定位(background-origin)2.6.背景重复方式(background-repeat)2.7.背景图尺寸(background-size)2.8.背景粘附(back...
background-image属性:此标签的背景图片,取值:url(“路径/网址”),小括号中放本地/网络img的路径/网址,标签中的background-image自动repeat,当网页上出现了img时,浏览器会再次发送一个请求报文获取img文件,同一个标签可以同时设置background-color和background-image,background-image会覆盖background-color,background...
background-image: url(flower.png), url(ball.png), url(grass.png); background-position: center center, 20% 80%, top left; background-origin: border-box, content-box, border-box; background-repeat: no-repeat, no-repeat, no-repeat; The first image in the list is the layer closest ...
left The distance from the left edge of the image. x_repeat The horizontal repeat style. y_repeat The vertical repeat style. border The width of the border on all sides. top_border The width of the top border. right_border The width of the right border. bottom_border The width of the...
The -fx-background-repeat, -fx-background-position, and -fx-background-size properties each can contain a series of values. For each item in the -fx-background-image series, the corresponding items in the -fx-background-repeat, -fx-background-position, and -fx-background-size properties...
<image> = <url> | <image()> | <image-set()> | <cross-fade()> | <element()> | <gradient> An <image> can be used in many CSS properties, including the background-image, list-style-image, cursor properties [CSS2] (where it replaces the <url> component in the property’s valu...