Home > Web Front-end > CSS Tutorial > How to use css background-repeat attribute

How to use css background-repeat attribute

silencement
Release: 2019-06-05 14:53:49
Original
3368 people have browsed it

How to use css background-repeat attribute

css background-repeat Definition and Usage

css background-repeat property sets whether and how to repeat the background image.

By default, the background image repeats horizontally and vertically.

Repeat starting from the original image, which is defined by background-image and placed according to the value of background-position.

How to use css background-repeat attribute

Example

body
  {
  background-image: url(stars.gif);
  background-repeat: repeat-y;
  }
Copy after login

Browser support

All browsers support the background-repeat attribute .

Note: The attribute value "inherit" is not supported in any version of Internet Explorer (including IE8).

Tips and Notes

Tips: The position of the background image is set based on the background-position property. If the background-position property is not specified, the image will be placed in the upper left corner of the element.

Possible values

How to use css background-repeat attribute

The above is the detailed content of How to use css background-repeat attribute. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template