Home > php教程 > php手册 > body text

完美解决手机网页大背景不能铺完整个屏幕的超级代码

WBOY
Release: 2016-06-06 19:39:36
Original
1246 people have browsed it

html,body{min-height:100%;} ============优化================ html{min-height:100%;} html,body{min-height:100%;}body{background-image:url(bg_640.jpg);background-size:cover;babackground-repeat:no-repeat;}.main{padding-top:141%;text-align:cen

html,body{min-height:100%;}

============优化================

html{min-height:100%;}

html,body{min-height:100%;}
body{background-image:url(bg_640.jpg);background-size:cover;babackground-repeat:no-repeat;}
.main{padding-top:141%;text-align:center;}
.main a img{width:40%;}
.padd{padding-left:5%;}
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 Recommendations
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!