我对突出显示有一些问题。
这是我的 CSS 代码:
html {
-webkit-tap-highlight-color: rgba(0,0,0,0.7);
-webkit-touch-callout: none;
}
这是我的 HTML 代码:
<a href="javascript: location.href = 'level://?id=123456';">
<div class="Box" id="Box0">
<table class="BoldText" style="margin:8px;">
<tr>
<td valign="top" width="50">
<div class="ProfileImage">
<div style="background:url(<url>) top left no-repeat;"></div>
</div>
</td>
<td>gustaf98 published a level
<div style="width:220px; margin-top:4px;" class="lightText">Skiftnyckel</div>
</td>
</tr>
</table>
</div>
</a>
这是我在 UIWebView 中触摸 iPhone 上的框时的结果:
我的问题是,我怎样才能在整个盒子上加亮黑色?
请帮忙!
最佳答案
根据您的 CSS,您已将此应用于整个 HTML 而不是特定容器。您有这方面的工作示例或链接吗?
尝试将它专门应用于您想要突出显示的框。
例如……
.box {
-webkit-tap-highlight-color: rgba(0,0,0,0.7);
-webkit-touch-callout: none;
}
关于ios - 奇怪的亮点 Mobile Safari,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13204356/