1. 링크 버튼
2. 양식 버튼
3. 그래픽 버튼
4. >
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>jQuery Mobile Web 应用程序</title> <link href="jquery-mobile/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/> <script src="jquery-mobile/jquery-1.6.4.min.js" type="text/javascript"></script> <script src="jquery-mobile/jquery.mobile-1.0.min.js" type="text/javascript"></script> </head> <body> <p data-role="page" id="page1" data-fullscreen="true"> <p data-role="content"> <a href="#" data-role="button">链接按钮</a> </p> </p> </body> </html>
5. 버튼 위치
<p data-role="page" id="page1" data-fullscreen="true"> <p data-role="content"> <a href="#" data-role="button">链接按钮</a> <form> <input type="button" value="表单按钮"/> <button type="submit">提交按钮</button> <input type="submit" value="提交按钮"/> <input type="reset" value="重置按钮"/> </form> </p> </p>
6. 사용자 정의 아이콘 버튼
图像按钮1: <input type="image" src="jquery-mobile/images/icon.png" data-role="none"/> 图像按钮2: <a href="#"><img src="jquery-mobile/images/icon.png"></a>rrree
7. 그룹 버튼
rreee
8.
<input type="button" value="带图标的按钮" data-icon="delete"/> <input type="button" data-icon="delete" data-iconpos="notext"/> <input type="button" data-icon="alert" data-iconpos="notext"/> <input type="button" data-icon="arrow-d" data-iconpos="notext"/> <input type="button" data-icon="arrow-l" data-iconpos="notext"/> <input type="button" data-icon="arrow-r" data-iconpos="notext"/> <input type="button" data-icon="arrow-u" data-iconpos="notext"/> <input type="button" data-icon="back" data-iconpos="notext"/> <input type="button" data-icon="check" data-iconpos="notext"/> <input type="button" data-icon="custom" data-iconpos="notext"/> <input type="button" data-icon="forward" data-iconpos="notext"/> <input type="button" data-icon="gear" data-iconpos="notext"/> <input type="button" data-icon="grid" data-iconpos="notext"/> <input type="button" data-icon="home" data-iconpos="notext"/> <input type="button" data-icon="info" data-iconpos="notext"/> <input type="button" data-icon="minus" data-iconpos="notext"/> <input type="button" data-icon="plus" data-iconpos="notext"/> <input type="button" data-icon="refresh" data-iconpos="notext"/> <input type="button" data-icon="search" data-iconpos="notext"/> <input type="button" data-icon="star" data-iconpos="notext"/>
9. 동적 버튼
<a href="#" data-role="button" data-icon="arrow-u" data-iconpos="top">top</a> <a href="#" data-role="button" data-icon="arrow-l" data-iconpos="left">left</a> <a href="#" data-role="button" data-icon="arrow-r" data-iconpos="right">right</a> <a href="#" data-role="button" data-icon="arrow-d" data-iconpos="bottom">bottom</a>
<a href="#" data-role="button" data-icon="custom_icon">自定义图标</a>
부울
icon문자열
iconpos문자열
iconshadow부울
initSelectorCSS 선택기 문자열
inlineboolean
shadowboolean버튼 플러그인에는 다음 두 가지 방법:
$("#button1").button("enable");
$("#button2").button("disable");
모두 코드는 다음과 같습니다.
.ui-icon-custom_icon{ background:url(jquery-mobile/images/icon.png) 50% 50% no-repeat; background-size:14px 14px; }