码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2015-02-26 18:34:43      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:jquery mobile

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

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

标签:jquery mobile

原文地址:http://blog.csdn.net/responsecool/article/details/43955133

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!