【发布时间】:2017-03-14 14:02:52
【问题描述】:
我有一个问题,我的输入字段中的文本看起来像这样,但仅限于 IOS。当我开始在该字段中输入时,一切正常..
看起来不错,在 android 和台式机上,只有 ios 似乎会导致问题。
任何解决此问题的提示将不胜感激。
代码:
html:
<div class="search-overlay">
<div class="search-input" role="search">
<input placeholder="Søg på titel" name="query" data-quick-search="" id="search-programs-input"
type="text" class="" value="" autocomplete="off"><button type="submit" class="dr-icon-search search-input-icon form-control-feedback"><span class="sr-only">{{dictionary "search" "Title"}}</span></button>
<button type="button" class="close close-search" data-quicksearch-close=""><span class="dr-icon-close" aria-hidden="true"></span><span class="sr-only">{{dictionary "mainNavigation" "closeSearch"}}</span></button>
</div>
</div>
造型:
.search-overlay {
background-color: white;
height: 75px;
position: absolute;
top: -75px;
width: 500px;
right: 5px;
z-index: 900;
border: 1px solid #ccc;
.search-input {
padding: 15px;
padding-left: 20px;
input {
background: #E5E5E5;
width: 92%;
font-size: 24px;
}
button {
border: none;
background: transparent;
&[class*=dr-icon-search] {
position: absolute;
right: 55px;
top: 23px;
&:before {
font-size: 25px;
color: gray;
}
}
.dr-icon-close {
position: absolute;
right: 14px;
top: 23px;
&:before {
font-size: 15px;
color: gray;
}
}
}
}
}
【问题讨论】:
-
您需要包含您的代码,以便有人能够帮助您。
-
@MateBoy 现已添加。
-
没人能想到解决办法吗?