English 中文(简体)
• 如何在使用电话/电报时在WP7 IE中消除选择性/排泄板的行为
原标题:How to disable select/clipboard behavior in WP7 IE when using PhoneGap / Cordova

我试图利用Cordova 1.7.0,为WP7建立一个简单的电话。

2005年VS项目模板在指数.html中显示一个简单受欢迎的信息。 当你在屏幕上触及案文时,案文转至选定文本,左板一孔显示。 此外,如果你的网页有照片,那么触及主题就会像选择那样突出。

这种行为使“倡议”无法使用,我如何防止它?

What I ve tried is: a) all CSS -ms-user-selectable: none etc, and b) uselectable= on attribute in elements.

所有这些都无法选择统一调查要素。

(附注WP7为芒果)

任何想法?

图十

问题回答

我用绝对位置的假肢解决问题。 例如,你有一个案文内容,希望避免选择案文:

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vitae orci condimentum magna sagittis congue eu at diam. <a href="#">Learn more</a></p>

CSS:

p {
    position:relative;
    z-index: 0;
}

p:before {
    content:  ; 
    position:absolute; 
    top:0px; 
    left:0px; 
    right:0px; 
    bottom:0px; 
    z-index:1;
}

p a {
    position:relative; 
    z-index:2;
}

添加到左边的Z-index可打开点击的可能性,如果你在该区有另一个可点击的内容的话,则会谨慎。 解决办法显然是第7号工作计划的许多内容,但它是行之有效的。





相关问题
System.Json namespace missing from Windows Phone 7

During a Mix10 presentation, the presenter (Charlie Kindel) said that when writing Silverlight based apps for WP7 you get all of Silverlight 3.0 with some of Silverlight 4.0 mixed in. Why then is ...

Will Windows Phone 7 Support Multitasking third party apps

Obviously it s early days, I do not know whether this is information that is in the public domain or not yet, but... I have trawled through some of this site - http://www.windowsphone7series.com/ but ...

Windows Series Phone 7 "Cloud"

I have been reading up on "Cloud computing" on here and still not getting it. Basically I want to develop for the WP7 http://msdn.microsoft.com/en-us/library/ff402531%28v=VS.92%29.aspx#...

Windows Phone 7 Tab Pages (page cycle)

I know.. I know, it s only a few hours old. But how the hell do you get the little page tabbing/cycle (forgot what the official name is) on the top of the page under the app title. MIX Keynotes made ...

Recording audio from the microphone in Windows Phone 7 Series

I m wondering if anyone has any code samples or links to documentation that demonstrate how to capture audio from the device s microphone on the new Windows Phone Series 7. I ve recently downloaded ...

Resources for Windows Phone 7 development [closed]

Windows Phone 7 has been unveiled and MS have announced all details of the development chain at the Mix10 conference. So this could be a good starting point/collection of online resources as they ...

热门标签