*新闻详情页*/>
用甚么编码完成?不容许有白色底色造成,由于手机上高宽比不1样
设计方案图要规范(750)确定是情况图(通屏底图)运用情景:挪动端宣传策划网页页面或主题活动网页页面
不正确的写法:加到div中融合照片设定min-height,可是网页页面不容易回弹
终极计划方案
html,body{ width:100%; height:100% }
body{ font-family: "华文细黑"; background:url("../img/Flyer-bg.png") no-repeat; background-size: 100%; }
1个hack计划方案处理竖直剧中难题
<head> <meta charset="utf⑻"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,minimum-scale=1.0"> <title>缓存文件</title> <script src="js/jquery⑴.8.2.min.js"></script> <script src="js/store.min.js"></script> <style> .parent{ width:200px; height: 200px; /* 下列特性竖直垂直居中 */ position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; background-color: #aaa; } </style> </head> <body> <div class="parent">111</div> </body>
别的计划方案
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF⑻"> <title>Document</title> </head> <body> <div id="Layer1" style="position:fixed; left:0px; top:0px; width:100%; height:100%"> <img src="https://www.qianbuxian.com/uploads/banners/204_shouye5.jpg" width="100%" height="100%"/> </body> </html>
消除波动
.float-left { float: left; } .float-right { float: right; } .clear-fix:after { display: table; content: ''; clear: both; }
到此这篇有关HTML5 body设定自融入全屏的文章内容就详细介绍到这了,更多有关HTML5自融入全屏內容请检索脚本制作之家之前的文章内容或再次访问下面的有关文章内容,期待大伙儿之后多多适用脚本制作之家!
Copyright © 2002-2020 微信小程序页面设计_python小程序_小程序首页模板_如何建立微信小程序_怎么做微信小程序 版权所有 (网站地图) 粤ICP备10235580号