CSS background Background style usage
Background styles are often used during website production.The following is CSS background Several styles that are often used in background styles:
- Control of background properties and background position:
1、background-position: Horizontal, vertical.
2、Background-attachment: Background scroll.Properties set whether the background image is fixed or scrolls with the rest of the page.body{ background-image: url(bgimage.gif); background-attachment: fixed; } - transparent: Transparent background
transparent Indicates transparent and colorless
none Indicates that no background image is set
repeat Indicates duplicate pictures
scroll Indicates that the background image scrolls with the browser pull-down
0%The horizontal position is x0
0%Vertical position in y0 - The order of setting background properties:
Background attributes: background color background picture background is repeated when the background is scrolled with the browser.background : background-color || background-image || background-repeat || background-attachment || background-position - transform Deformation --- rotate RotateLi:hover dt{ -moz-transform: rotate(360deg);-webkit-transform: rotate(360deg);-webkit-transition: all ease-in-out .5s;-moz-transition: all ease-in-out .5s;}div{transform:rotate(7deg);
-ms-transform:rotate(7deg); /* IE 9 */
-moz-transform:rotate(7deg); /* Firefox */
-webkit-transform:rotate(7deg); /* Safari、Chrome */
-o-transform:rotate(7deg); /* Opera */
}

The above is shared by Suyou.com with everyone." CSS background Background style usage", thank you very much for your patience to read this article, we will provide you with more information on reference, use or learning and communication.We can also provide you with:Enterprise website construction, website imitation, website copying, imitation site, foreign trade website construction, foreign trade website construction, company official website productionFor services, our company serves customers with the service concept of "integrity, professionalism, pragmatism and innovation".If you need cooperation, please scan the code to consult, and we will serve you sincerely.
TAG Label: