这种背景可以自由按窗口扩缩的是怎么做的?_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:43:54
Original
848 people have browsed it

这种背景可以自由按窗口扩缩的是怎么做的?

回复讨论(解决方案)

CSS背景图 平铺。

只要背景图片支持平铺就OK了

然后页面的div  宽度100%;高度100%;平铺背景。



基本上结构是这么写的

<body>	<!-- 页面整个背景,也就是看到的蓝色背景,平铺可延展图片 -->	<div style="width:100%;height:100%">		<div style="width:1002px;margin:0 auto">			<!-- 页面主内容,就是看到的登录表单 -->		</div>	</div></body>
Copy after login

背景就是一张蓝色图片剧中
左上角  右下角 是分开的小图片 进行了定位

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!