【发布时间】:2012-03-22 02:10:32
【问题描述】:
我正在尝试为 Windows Phone 7/7.5 编写一个简单的 HTML 5 应用程序。我有一个 HTML5 页面,其画布几乎与屏幕一样大。当我单击/点击屏幕时,画布被选中。我不希望这种行为,但我仍然希望能够单击/点击各种控件。有没有办法避免这种行为?下面是效果截图链接。
我尝试在正文中使用 CSS 来消除这种行为。到目前为止没有任何效果。
body {
/* disable selections / cut copy paste actions */
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
/* disable callout, image save panel on long press */
-webkit-touch-callout: none;
/* "turn off" link highlight, good for custom pressed states */
-webkit-tap-hightlight-color: transparent;
}
提前感谢您的帮助!
【问题讨论】:
标签: css html windows-phone-7