【发布时间】:2026-02-24 14:00:02
【问题描述】:
背景图像位置在 Jelly Bean webView 中不呈现,但在 KitKat 版本中可以正常工作
CSS
.clearable{
background:url("../images/txtclear.png") no-repeat right 5px center !important;
border:1px solid #999;
padding:3px 18px 3px 4px;
border-radius:3px;
transition: background 0.4s;
}
HTML
<html>
<body>
<input value="" id="txtsearch" type="email" placeholder="Enter Search string" class="clearable"/>
</body>
</html>
我还参考了以下 URL 中的类似帖子,但这不能解决我的问题。 background-attachment messes up rendering in Jelly Bean WebView?
【问题讨论】: