【发布时间】:2021-02-23 18:03:49
【问题描述】:
你好
我正在建立一个聊天室网站,但它在 iPhone 上遇到了问题(或者可能是我尚未检查的 safari)。
当您开始在底部输入position: fixed 时,屏幕会放大,您必须手动缩小才能看到发送按钮。我知道这不是很解释,所以我将我的代码放在这里:
有时工作的草率代码(现在除外)
input {
font-size: 150%;
width: 83vw;
height: inherit;
}
form {
position: fixed;
bottom: 0px;
left: -2px;
height: 6vh;
margin-bottom: 0px;
}
form button {
width: calc(17vw + 2px);
font-size: 150%;
position: fixed;
right: -2px;
height: inherit;
}
【问题讨论】:
标签: html css iphone safari mobile-safari