【发布时间】:2014-09-28 06:12:05
【问题描述】:
我的页面上有一个面板可以按照我希望的方式工作,只需要知道在我继续使用面板之前是否可以 1.是否有多个面板同时打开? (我想打开两个或更多面板,每次打开一个新面板时,其他所有面板都将停用,唯一的活动面板是打开的面板)
如果没有,谁能推荐一个解决上述问题的好方法。
-
如何在面板打开时停用页面
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css"> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script> </head> <body> <div data-role="page" id="pageone"> <div data-role="panel" id="myPanelDefault"> <h2>Panel Header</h2> <p>You can close the panel b:</p> <a href="#pageone" data-rel="close" class="ui-btn ui-btn-inline ui-shadow ui-corner-all ui-btn-a ui-icon-delete ui-btn-icon-left">Close panel</a> </div> <div data-role="panel" id="myPanelFixed" data-position-fixed="true"> <h2>Panel Header</h2> <p>You can close the panel by clicking outside the panel, pressing the Esc key, by swiping, or by clicking the button below:</p>关闭面板
页眉
打开面板页脚
【问题讨论】:
-
“我的页面上有一个面板”帮助我们为您提供帮助:请分享您的相关代码。
-
我认为使用 JQM 面板不会那么容易做到这一点,尽管我记得在 SO 上看到过一个演示,其中多个面板在单击时一个接一个地打开,但我不记得链接.您也可以使用滑出框自己制作 -- 示例 -- stackoverflow.com/questions/26061191/… -- 教程 -- tympanus.net/codrops/2009/12/03/…
标签: jquery jquery-mobile