jquerymobile按钮事例

<!DOCTYPE html>

<html>

<head>

<title>button</title>

<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0" />

<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.min.js"></script>

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css"
/>

<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script>

</head>

<body>

<div data-role="page" id="homepage" data-position="fixed">

<div data-role="header">

<h1>button按钮</h1>

</div>

<div data-role="content">

<a data-role="button" data-icon="home" data-theme="a" href="#">首页</a>

<a data-role="button" data-icon="arrow-l" data-theme="a" href="#">左箭头</a>

<a data-role="button" data-icon="arrow-r" data-theme="a" href="#">右箭头</a>

<a data-role="button" data-icon="arrow-u" data-theme="a" href="#">上箭头</a>

<a data-role="button" data-icon="arrow-d" data-theme="a" href="#">下箭头</a>

<a data-role="button" data-icon="delete" data-theme="a" href="#">删除</a>

<a data-role="button" data-icon="plus" data-theme="a" href="#">加号</a>

<a data-role="button" data-icon="minus" data-theme="a" href="#">减号</a>

<a data-role="button" data-icon="check" data-theme="a" href="#">对号</a>

<a data-role="button" data-icon="gear" data-theme="a" href="#">齿轮</a>

<a data-role="button" data-icon="refresh" data-theme="a" href="#">刷新</a>

<a data-role="button" data-icon="forward" data-theme="a" href="#">前进</a>

<a data-role="button" data-icon="back" data-theme="a" href="#">返回</a>

<a data-role="button" data-icon="grid" data-theme="a" href="#">网格</a>

<a data-role="button" data-icon="star" data-theme="a" href="#">星星</a>

<a data-role="button" data-icon="alert" data-theme="a" href="#">提示</a>

<a data-role="button" data-icon="info" data-theme="a" href="#">信息</a>

<a data-role="button" data-icon="search" data-theme="a" href="#">查找</a>

</div>

<div data-role="footer" data-position="fixed">

<h4>jQuery Mobile按钮事例</h4>

</div>

</div>

</body>

</html>

效果:

时间: 2024-08-24 09:45:44

jquerymobile按钮事例的相关文章

jQueryMobile 按钮、导航及折叠块组件

按钮.导航栏.折叠块.折叠菜单的生成及方法.事件 1. 按钮 jQueryMobile 自动把button和type属性为submit.reset.button.image的input元素增强为按钮 <div data-role="content" data-theme="b"> <button>Button</button> <input type="submit" value="submit

jquerymobile手风琴事例

<!DOCTYPE html> <html> <head> <title>三国</title> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0" /> <script type="text/javascript" src="http://code

jquerymobile菜单事例

<!DOCTYPE html> <html> <head> <title>三国</title> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0" /> <script type="text/javascript" src="http://code

PayPal 开发详解(三):在网站上创建【立即付款】按钮

1.使用[商家帐号]登录https://www.sandbox.paypal.com/ 2.点击[用户信息]->[其他选项]->[我保存的按钮] 3.选择[立即购买按钮事例] 4.[第一步]设置商品名称.价格 5.[第二步]跟踪库存(可选) 6.[第三步]自定义高级功能 (可选) 7.[保存设置] 8.将HTML代码粘贴到网站对应位置.

DevExpress Report 其他常用设计技巧

原文:DevExpress Report 其他常用设计技巧 1 设置默认的打印纸张及页边距 选择Report-打开属性窗口,设置默认边距(Margins)和默认纸张(PaperKind). 2 修改Report Preview的默认工具栏(WinForm) 一般情况下,Report 的Preview视图中的工具栏不用修改就可满足使用.但是当想修改或添加新的按钮执行自己的方法时就需要修改Preview工具栏了. 2.1 获取默认工具栏 DevExpress.XtraBars.Bar bar = R

HTML5移动开发之路(44)——JqueryMobile中的按钮

本文为 兄弟连IT教育 机构官方 HTML5培训 教程,主要介绍:HTML5移动开发之路(44)--JqueryMobile中的按钮 一.链接按钮 [html] view plain copy print? <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>jQuery Mobile Web 应用程序</title> <link href=

jqueryMobile模块整理—按钮(buttons)

作为一名移动端开发小菜鸟,由于公司指定使用jQueryMobile来作为开发框架(虽然一开始我的内心是拒绝的~).不过框架总是有可取之处的,所以从今天开始整理一下jqm(jQueryMobile简称)的模块使用方法. 1.在jqm中,不管是a标签还是input标签等,添加data-role = "button"  或class="ui-btn"  属性,即可将该标签变为按钮. 2.添加.ui-btn-inline类可使按钮成横排显示. 3.添加.ui-corner-

jQueryMobile的按钮样式

好吧,已经学了jQueryMobile一年了,今天心血来潮,想要写一篇关于jQueryMobile的博客文章,记得去年暑假在公司实习jQueryMobile,想一想真是怀念当时还是菜鸟的自己,年轻就是任性呀(笑~),好了,关于jQueryMobile方面的概念知识,大家可以去网上查阅相关资料,今天我写了一些jQueryMobile的按钮样式,还是比较漂亮的,代码如下: <!DOCTYPE html> <html> <head lang="en"> &

jQueryMobile的组件——按钮(button)

在jQueryMobile框架中,默认按钮是横向独占根据屏幕宽度自适应的. ui-btn--声明为按钮显示: ui-shadow--让元素在划过时有阴影的效果: ui-icon-*--jQueryMobile内置图标属性: ui-btn-icon-notext--让按钮隐藏文字:另外的ui-btn-icon-*属性还有: ui-btn-inline--在一行中显示多个按钮,即内联样式: data-role="controlgroup"--将几个按钮以组的方式显示: data-type=