【发布时间】:2011-10-15 07:36:24
【问题描述】:
对话框本身只占页面的 10% 左右,我想移除对话框的页面背景或将其变为透明,以便之前的页面仍然可见。
这是调用对话框的js:
$.mobile.changePage('#popdiv',{transition:'slide', role:'dialog'});
这是 div
<div data-role="page" id="popdiv" data-role="page" data-theme="e">
<div data-role="content">
<h1>Congrats!</h1>
</div>
</div>
我尝试使用自定义 css,但它似乎没有任何改变
div#popdiv {
background: none; // i also used background-image and color and set it to none
}
这就是我声明css和js的方式
<custom css>
<jquery mobile css>
<jquery min.js>
<phonegap.js>
<custom.js>
<jquerymobile.js>
请帮忙。非常感谢。
【问题讨论】:
标签: jquery mobile jquery-mobile dialog