最新版本号[免费下载]

jQuery Mobile 按钮

作者:本站编辑 发布时间:2015-11-24 来源:本站原创 点击数:

在 jQuery Mobile 中创建按钮

在 jQuery Mobile 中,按钮可通过三种方式创建:

  • 使用 <button> 元素

  • 使用 <input> 元素

  • 使用带有 data-role="button" 的 <a> 元素

  • <button>按钮</button>
    <input type="button" value="按钮">
    <a href="#" data-role="button">按钮</a>
    <a href="#pagetwo" data-role="button">访问第二个页面</a>
    <a href="#pagetwo" data-role="button" data-inline="true">访问第二个页面</a>
    <div data-role="controlgroup" data-type="horizontal">
    <a href="#anylink" data-role="button">按钮 1</a>
    <a href="#anylink" data-role="button">按钮 2</a>
    <a href="#anylink" data-role="button">按钮 3</a>
    </div>
    <a href="#" data-role="button" data-rel="back">返回</a>


本文责任编辑: 加入会员收藏夹 点此参与评论>>
复制本网址-发给QQ/微信上的朋友
上一篇文章:jQuery Mobile 过渡
下一篇文章:jQuery Mobile 按钮图标
AI智能听书
选取音色