我需要一个模态弹出屏幕/表单在我的网站应该在Android,iphone和黑莓上工作。我尝试使用jquery ui对话框,但它似乎不能在上述设备上正常工作。有人能帮我一下吗?
谢谢。
看看jQueryMobile -你可以这样做:
<script>
$('#okButton').bind('click', function () {
alert('hello world');
});
</script>
<div data-role="page">
<div data-role="content">
<a href="#myDialog" data-rel="dialog" data-role="button">Open Dialog</a>
</div>
</div>
<div id="myDialog" data-role="dialog">
<a href="#" data-role="button" data-icon="check" id="okButton">OK</a>
<a href="#" data-rel="back" data-icon="delete" data-role="button">Cancel</a>
</div>