Home  >  Article  >  Web Front-end  >  What does repeat mean in css

What does repeat mean in css

WBOY
WBOYOriginal
2021-12-30 11:59:055395browse

In CSS, repeat means "repeat". When the repeat attribute value is used in conjunction with the "background-repeat" attribute, you can set the background image of the element to repeat vertically and horizontally. The syntax is " Element {background-repeat:repeat;}".

What does repeat mean in css

The operating environment of this article: windows10 system, CSS3&&HTML5 version, Dell G3 computer.

What does repeat mean in css

In css, repeat means "repeat".

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

By default, the background image repeats horizontally and vertically.

The background-repeat attribute defines the tiling mode of the image.

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

The syntax is as follows:

background-repeat:value;

The attribute values ​​are as follows:

What does repeat mean in css

##The example is as follows:

<html>
<head>
<style type="text/css">
body{ 
background-image: url(1118.02.png);
background-repeat: repeat-y
}
</style>
</head>
<body>
</body>
</html>

Output result:

What does repeat mean in css

(Learning video sharing:

css video tutorial)

The above is the detailed content of What does repeat mean in css. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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