gpt4 book ai didi

html - 在 iOS 中显示不同大小的输入字段

转载 作者:太空狗 更新时间:2023-10-29 13:33:48 26 4
gpt4 key购买 nike

我有一个带有背景和固定宽度/高度的输入字段。它在我桌面上的所有浏览器中看起来都不错。但出于某种原因,它在 iPadiPhone 上看起来更大。

我在 Css 中尝试了几个技巧,但到目前为止没有任何效果。

width: 120px !important;
background-image:url('../img/header-input.png');
height: 30px;
-webkit-appearance: none !important;
-webkit-border-radius: 0;
border-radius:0;
@include border-radius(0);
outline: none;
border: none;

最佳答案

请注意,据我所知,iOS 中的 Safari 浏览器会在输入字段中添加额外的填充。

尝试在您的 CSS 中使用此代码:

padding: 0;

关于html - 在 iOS 中显示不同大小的输入字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21552908/

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