How to fix the CSS background picture
This article introduces the relevant knowledge of "how to fix the background picture of CSS". Many people will encounter such a dilemma in the operation of actual cases, 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!
Definition and usage of background-attachment
The background-attachment property sets whether the background image is fixed or scrolled along with the rest of the page.
Possible value
Practical code to realize the fixing of background picture
Body {background-image: url (http://pic1.win4000.com/wallpaper/2017-10-14/59e1bb9f01314.jpg); background-repeat: no-repeat; / * photos do not repeat * / background-attachment: fixed;})
The legendary method of fixing the background
The legendary method of fixing the background
The legendary method of fixing the background
The legendary method of fixing the background
The legendary method of fixing the background
The legendary method of fixing the background
The legendary method of fixing the background
The legendary method of fixing the background
The legendary method of fixing the background
The legendary method of fixing the background
This is the end of the content of "how to fix CSS background Pictures". 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!