【发布时间】:2016-06-17 17:25:25
【问题描述】:
该模式只是在 Iphone(所有浏览器)上放大,在 Android 和笔记本电脑(mac 和 pc)上运行良好
这就是部署的链接。
CSS
body{
padding-top:60px;
min-height:100%;
padding-right: 0px !important;
}
.backgroundImg{
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 0;
background-image: url(../img/confetti.jpg) ;
background-repeat:no-repeat;
background-position: center center;
background-attachment: fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.modal-open {
overflow-y: auto;
}
HTML
<div class="text-center">
<button type="button" class="btn btn-info btn-lg center-block" data-toggle="modal" data-target="#myModalRegister" id="registerButton" href="#">Register</button>
<button type="button" class="btn btn-info btn-lg center-block" data-toggle="modal" data-target="#myModalLogin" id="loginButton" href="#">Login</button>
</div>
【问题讨论】:
-
那是他的“反应能力”
-
我不明白你想说什么。
-
你的iphone窗口宽度是多少?
-
纵向宽度 320,横向宽度 480 我认为,这是来自谷歌搜索。我在不同的 iphone、iphone 6,6 plus、5,5s 上试过。同样的问题。
-
你的模态在pc或mac上的宽度是多少??
标签: jquery ios css twitter-bootstrap