jQuery mobile 学习06 提示框和确认框

<%@ 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>

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。