Home > Web Front-end > HTML Tutorial > How to adapt the background image of the web page to the screen? Solve_html/css_WEB-ITnose

How to adapt the background image of the web page to the screen? Solve_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:44:54
Original
944 people have browsed it

I am making an interface for registration, etc., and want to use a picture as the background of the web page, but it does not seem to support stretch tiles
Apart from using js to determine the user size, is there any good way to solve this? question!
Wait for the master online to ask for advice and give you some ideas! thank U


Reply to discussion (solution)

css3 supports background scaling. http://www.html5cn.com.cn/css3/2013-04-21/267.html
Other methods, you can use a div, put a background inside, set the height and width to 100% to simulate the background.

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template