In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "how to set picture tiling mode in css". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
In css, you can use the background-repeat property to set the picture tiling mode. When the value is "repeat", the background can be completely tiled, when it is "repeat-x", it can be tiled horizontally, when it is "repeat-y", it can be tiled longitudinally, and when it is "no-repeat" it is not tiled (the image will be displayed only once).
The operating environment of this tutorial: windows7 system, CSS3&&HTML5 version, Dell G3 computer.
In css, you can use the background-repeat property to set the way the picture is tiled.
The background-repeat property defines the tiling mode of the image and sets whether and how to repeat the background image.
The background-repeat property can set four tiling modes:
1. The background can be completely tiled when the value is "repeat".
Repeat: default. The background image is repeated vertically and horizontally.
Div {width: 500px; height: 500px; border: 2px solid red; background-image: url (img/nz.png); background-repeat:repeat;}
2. It can be tiled horizontally when the value is "repeat-x"
Repeat-x: only the horizontal position repeats the background image
Div {width: 500px; height: 500px; border: 2px solid red; background-image: url (img/nz.png); background-repeat:repeat-x;}
3. It can be tiled longitudinally when the value is "repeat-y".
Repeat-y: only the vertical position repeats the background image
Div {width: 500px; height: 500px; border: 2px solid red; background-image: url (img/nz.png); background-repeat:repeat-y;}
4. If the value is "no-repeat", it is not tiled.
No-repeat: the background image will be displayed only once
Div {width: 500px; height: 500px; border: 2px solid red; background-image: url (img/nz.png); background-repeat:no-repeat;}
This is the end of the content of "how to set picture tiling mode in css". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.