<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE html> <html> <head> <title>JQM TITLE</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="jqm/jquery.mobile-1.4.5.css" /> <script src="jqm/jquery-1.11.2.js"></script> <script src="jqm/jquery.mobile-1.4.5.js"></script> </head> <body> <div data-role="page" id="index"> <div data-role="header"> <h1>页面标题区域</h1> </div> <div data-role="main" class="ui-content"> <p>页面内容区域</p> <br/> <a href="#showdialog">显示提示框</a> <br/> <br/> <br/> <a href="#showconfirm">显示确认框</a> <br/> <br/> </div> <div data-role="footer" data-> <h2>页面底部区域</h2> </div> </div> <div data-role="dialog" id="showdialog"> <div data-role="header"> <h1>提示框的标题</h1> </div> <div data-role="content"> <p>jack</p> <p>daju</p> </div> <div data-role="footer"> <h3>提示框的底部</h3> </div> </div> <div data-role="dialog" id="showconfirm"> <div data-role="header"> <h1>确认框标题</h1> </div> <div data-role="content"> <p> <b>你确定退票吗?</b> </p> <a data-role="button" data-inline="true">确定</a> <a data-role="button" data-inline="true">取消</a> </div> <div data-role="footer"> <h3>确认框的底部</h3> </div> </div> </body> </html>
原文地址:http://blog.csdn.net/responsecool/article/details/43955133