gpt4 book ai didi

jquery - iPhone 上的 Safari 在页面右侧添加了一个黑色空间,重点放在输入和设备从水平旋转到垂直

转载 作者:行者123 更新时间:2023-11-28 09:35:58 24 4
gpt4 key购买 nike

iOS 版本:7.1.2浏览器:Safari

我有一个示例登录页面,其中包含两个输入字段和一个提交按钮。当我在横向模式下专注于任何输入字段并旋转手机并进入纵向模式时,我在页面右侧看到一个奇怪的黑色空间。截图如下:

Page Viewed in landscape mode

When switched to portrait mode

我的页面代码如下:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<title>IOS Test</title>
<style type="text/css">
a, abbr, acronym, address, applet, article, aside, audio, b, blockquote, big, body, center, canvas, caption, cite, code, command, datalist, dd, del, details, dfn, dl, div, dt, em, embed, fieldset, figcaption, figure, font, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, keygen, label, legend, li, meter, nav, object, ol, output, p, pre, progress, q, s, samp, section, small, span, source, strike, strong, sub, sup, table, tbody, tfoot, thead, th, tr, tdvideo, tt, u, ul, var
{
background: transparent;
border: 0 none;
font-size: 100%;
margin: 0;
padding: 0;
border: 0;
outline: 0;
vertical-align: top;
}
ol, ul
{
list-style: none;
}
blockquote, q
{
quotes: none;
}
table, table td
{
padding: 0;
border: none;
border-collapse: collapse;
}
img
{
vertical-align: top;
}
embed
{
vertical-align: top;
}
article, aside, audio, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, meter, nav, output, progress, section, source, video, div
{
display: block;
}
mark, rp, rt, ruby, summary, time
{
display: inline;
}
input, textarea
{
border: 0;
padding: 0;
margin: 0;
outline: 0;
}
iframe
{
border: 0;
margin: 0;
padding: 0;
}
input, textarea, select
{
margin: 0;
padding: 0;
}

body
{
font-family: Arial, Myriad Pro, Trebuchet MS, sans-serif;
font-size: 100%;
background: #F5F5F5;
}
a
{
text-decoration: none;
}
a:hover
{
text-decoration: none;
}
img, object, embed, video
{
max-width: 100% !important;
}
.clear
{
display: block !important;
width: 100% !important;
clear: both !important;
}
.body
{
position: fixed;
width: 100%;
top: 0;
left: 0;
overflow-y: scroll;
-ms-overflow-style: -ms-autohiding-scrollbar;
-webkit-overflow-scrolling: touch;
-ms-touch-action: pan-y;
-ms-user-select: none;
z-index: 0;
}
.body > *
{
-webkit-transform: translateZ(0px);
}
.header
{
background: #fff;
text-align: center;
border-bottom: #45A116 solid 8px;
padding: 5% 10%;
}
.content
{
width: 70%;
position: relative;
margin: 20% auto 10% auto;
text-align: center;
}
.content input
{
display: block;
background: #E6E6E6;
border-radius: 15px;
border-bottom: #A8A8A8 solid 3px;
margin-bottom: 5%;
width: 96%;
padding: 4% 2%;
text-align: center;
color: #595959;
}
.content a
{
display: inline-block;
padding: 2% 10%;
color: #fff;
background: #45A116;
margin-top: 5%;
border-radius: 5px;
border-bottom: #2C690E solid 3px;
-webkit-transition: all 0.1s linear;
-moz-transition: all 0.1s linear;
-ms-transition: all 0.1s linear;
-o-transition: all 0.1s linear;
}
.content a:active
{
background:#368011;
}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
function adjustBody() {
var wh = $(window).height();
$(".body").css({
"height": wh + "px"
});
}

$(document).ready(function () {
adjustBody();
$(window).resize(function () {
adjustBody();
});
});
</script>
</head>
<body>
<div class="body">
<div class="header">
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxQSEhUUEhIWFBUUExUVFxgVFxgYGBkZFxcYFhcfHBkYHCgiGhomHxgVITEhJSkrLi4uFx8zODMsNygtLisBCgoKDg0OGxAQGywmICQyLCwvNDQsLCwwNzAsLCwvLCwvLCwsNCwsLCw0LCwsLCwsLCwsLCwsLCwsMCwsLCwsLP/AABEIAIYBeQMBEQACEQEDEQH/xAAcAAEAAgMBAQEAAAAAAAAAAAAABgcDBAUBCAL/xABJEAABA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JxpH5Qyq4DNPV3vqLIRxufSPiVLStLFZ56/N/bwI7de5eXL5IsDCeE46Jt758zhZzzu3NGweZVHe387l5bR6PUsre1jRXSyRKASggCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCAIAgCA1q2gimFpYmSDc9od810p1Z03nBtdh4nCM1lJZnEnwLQu/sM34XOH1UyOKXS/q8EcHZUXyMTej+i/wCG79t35r1+9rnp8Eef0NHo8ToUeFqOI3ZTR3GouGcR3F17LhUvriaylN+XkdY21KLzUUdhotoGhRDueoAgCAIAgCAIAgCAIAgCAID/2Q=="
alt="Sample Logo" />
</div>
<form action="" method="get" id="sampleForm">
<div class="content">
<input type="email" value="User Name" onblur="if($(this)[0].value == ''){$(this)[0].value = 'User Name';}"
onfocus="if($(this)[0].value != '' && $(this)[0].value == 'User Name'){$(this)[0].value = ''};" />
<input type="password" value="Password" onblur="if($(this)[0].value == ''){$(this)[0].value = 'Password';}"
onfocus="if($(this)[0].value != '' && $(this)[0].value == 'Password'){$(this)[0].value = ''};" />
<a href="javascript:void(0);" onclick="$('#sampleForm').submit();">Login</a>
</div>
</form>
</div>
</body>
</html>

最佳答案

删除这些样式将解决问题:

.body {
position: fixed;
width: 100%;
top: 0;
left: 0;
overflow-y: scroll;
}

我不确定您为什么想要这些样式,因为它们不会向布局添加任何内容,而是会在您描述的情况下破坏它。

(我在我的 iPhone 上对此进行了测试以确认。)

关于jquery - iPhone 上的 Safari 在页面右侧添加了一个黑色空间,重点放在输入和设备从水平旋转到垂直,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25528164/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com