在Windows Phone中通过z-index锁定屏幕 [英] Locking screen by z-index in windows phone

查看:119
本文介绍了在Windows Phone中通过z-index锁定屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当应用程序加载数据时,我使用加载程序,加载器下有黑屏,
链接和导航项目应该被锁定在那个时间,应用程序是基于phonegap的应用程序,一切都在iOS和Android中确定。
问题是在WP8,屏幕是黑暗的,但链接和导航是可点击。
这是我的css代码loader

I use loader when app loads data, under the loader there is dark screen, links and navigation items should be locked in that time, app is phonegap based app, and everything is ok in iOS and Android. Problem is in WP8,the screen is dark, but links and navigation are clickable. Here is my css code for loader

.loader {
background: rgba(0,0,0,0.6);
width:100%;
height:100%;
position:absolute;
left:0;
right:0;
z-index:1000;
}

我研究了一个解决方案,使用透明图标代替rgba但它不能解决问题。请任何解决方案或想法如何解决这个问题。

I've researched and found one solution to use transparent icon instead of rgba colorizing but it couldn't resolve the problem. Please any solution or ideas how to solve this problem.

推荐答案

问题通过JavaScript解决。
我已将点击事件监听器添加到我的加载器元素(.loader)。

The problem was solved via JavaScript. I have added the click event listener to my loader element (.loader).

$(.loader).on("click",function(e){
    e.preventDefault();
});

这篇关于在Windows Phone中通过z-index锁定屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆