【发布时间】:2014-09-22 21:55:27
【问题描述】:
我正在使用在 webView 中为 windows phone 8.1 显示此 html 代码,我猜它使用 IE 11。
<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
</head>
<body>
<p><font size="4">
<span id="1" onclick=notify(1)>Man this is awkward.</span>
<span id="2" onclick=notify(2)> Why is everyone so quite today.</span>
<span id="3" onclick=notify(3)> Oh please someone talk to me.</span>
<span id="4" onclick=notify(4)> This silence is intimidating.</span>
<br><br><br><br></font></p><style>
body {
-webkit-user-select: none;
-moz-user-select: -moz-none;
-ms-user-select: none;
user-select: none;
}
</style><script>
function notify(val)
{
window.external.notify(val.toString());
}
</script></body></html>
但是当我点击任何一行时,整行都会像这样被选中。
我想删除此突出显示。有没有办法做到这一点?
【问题讨论】:
-
这个页面只能在 IE11 上查看还是在其他移动浏览器上也可以查看?
标签: javascript html internet-explorer windows-phone-8 internet-explorer-10