i want to create a pop up window in phonegap jquery. Please help me out. i need click a button then it shows a popup that i have atached.
我想在phonegap jquery中创建一个弹出窗口。请帮帮我。我需要点击一个按钮,然后它会显示我已经上传的弹出窗口。
1 个解决方案
#1
1
I don't think you can overlay above the status bar (time, battery info). But if that isn't the problem... just add a div with an absolute position.
我不认为你可以叠加在状态栏上方(时间,电池信息)。但如果这不是问题...只需添加一个绝对位置的div。
#myDiv {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0,0,0,0.6);
z-index: 10;
display: none;
}
<body>
<div id='myDiv'>
<!-- add the fields/buttons here -->
</div>
</body>
<script>
//jQuery script
$('#myDiv').show();
</script>
#1
1
I don't think you can overlay above the status bar (time, battery info). But if that isn't the problem... just add a div with an absolute position.
我不认为你可以叠加在状态栏上方(时间,电池信息)。但如果这不是问题...只需添加一个绝对位置的div。
#myDiv {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0,0,0,0.6);
z-index: 10;
display: none;
}
<body>
<div id='myDiv'>
<!-- add the fields/buttons here -->
</div>
</body>
<script>
//jQuery script
$('#myDiv').show();
</script>