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 > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to achieve background picture tiling in CSS". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to tile background pictures in CSS".
Tiling skills of CSS background pictures
Using CSS to set up background images is as simple as traditional methods, but CSS provides more controllable options than traditional control methods. Let's first take a look at the most basic way to set up images. Xhtml Code:
The code is as follows:
CSS Code:
The code is as follows:
# content {border:1pxsolid#000fff; height:500px; background-image:url (images/bg.GIF);}
The id content element in the ◆ page is set by us to use the bg.GIF under the images folder as the background, which is no different from the setting in the traditional tabular layout. By default, the background also appears in the element in a tiled manner. However, using CSS to control the background is certainly not that easy. In fact, CSS provides us with more attributes to control the background, including the ability to control whether the element needs to be tiled. The improved code:
The code is as follows:
# content {border:1pxsolid#000fff; height:500px; background-image:url (images/bg.GIF); background-repeat:repeat-x;}
With background-repeat:repeat-x; added to ◆, the background is now tiled only in the X axis, that is, horizontally, not vertically. This is one of CSS's control over background details. Background-repeat is a property setting for background tiling, and optional values include:
The code is as follows:
Repeat is the default way to tile the background completely; no-repeat is not tiled in the X and Y directions; repeat-x tiles the background horizontally; repeat-y tiles the background vertically. Thank you for your reading, the above is the content of "how to achieve background picture tiling in CSS". After the study of this article, I believe you have a deeper understanding of how to achieve background picture tiling in CSS, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.