admin管理员组文章数量:1396461
How to hide ios input field blinking cursor. am trying so many ways it's not working for me.
In Windows,
SCSS
.input--textfield {
border: none;
color: transparent;
display: inline-block;
font-size: 2em;
text-shadow: 0 0 0 gray;
&:focus {
outline: none;
}
}
HTML
<input type="text" name="" value="10" class="input--textfield">
Working for me,
IOS
Not working below code, do you have any suggestion.
How to hide ios input field blinking cursor. am trying so many ways it's not working for me.
In Windows,
SCSS
.input--textfield {
border: none;
color: transparent;
display: inline-block;
font-size: 2em;
text-shadow: 0 0 0 gray;
&:focus {
outline: none;
}
}
HTML
<input type="text" name="" value="10" class="input--textfield">
Working for me,
IOS
Not working below code, do you have any suggestion.
Share Improve this question edited Jun 20, 2020 at 9:12 CommunityBot 11 silver badge asked Jun 22, 2018 at 5:14 SasthaSastha 1311 gold badge2 silver badges7 bronze badges2 Answers
Reset to default 6Try below it's very simple and working for me in IOS (5s, 6), IOS desktop and windows.
.input--textfield { caret-color: transparent;
}
<input type="text" name="" value="10" class="input--textfield">
ios android
.input--textfield {
border: none;
color: transparent;
caret-color: transparent;
text-indent: -999em;
}
<input type="text" name="" value="10" class="input--textfield">
本文标签: javascriptIn IOS hide input field blinking cursor for CSSStack Overflow
版权声明:本文标题:javascript - In IOS hide input field blinking cursor for CSS - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744794242a2625480.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论