gpt4 book ai didi

html - 在iphone中的固定位置

转载 作者:行者123 更新时间:2023-11-28 13:50:08 24 4
gpt4 key购买 nike

页脚的固定位置在浏览器中有效,但在 iphone 中无效。

 <div class="footer">
<input name="" type="submit" id="submit" value="send" />
</div>

CSS 是,

.footer{
position:fixed;
bottom:0;
left:0;
width:100%;
margin:0 auto;
padding:6px 0;
}

最佳答案

position:fixed 仅适用于 IOS5+

关于html - 在iphone中的固定位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11467738/

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