First, the official theme
Providing two jQuery Mobile theme version 1.4.5 style, respectively referenced with letters a and B;
<div id="page1" data-role="page" data-theme="a"></div>
<div id="page2" data-role="page" data-theme="b"></div>
Second, the custom theme
Third, the button assembly
Create a button element using <a>
<a href="#" data-role="button" data-inline="true" class="ui-btn-active">确定</a>
Use <button> element to create a button
<input type="button" data-icon="delete" value="取消">
Fourth, the list of components
<ul data-role="listview">
<li><a href="#">星期五音乐餐吧</a></li>
<li><a href="#">恋爱转角情人西餐厅</a></li>
<li><a href="#">成都印象</a></li>
<li><a href="#">美食家私房菜馆</a></li>
</ul>
List segmentation - Manual
Split the specified list, a list item <li> element added data-role = "list-divider" attribute.
<ul>
<li data-role="list-divider" class="list01">中餐厅</li>
<li><a href="#"><img src="images/174404.jpg" />
<h2>外婆家私房菜馆</h2>
<p>主营精致的创新私房菜为主打,特别适合年青人</p>
</a>
</li>
<li><a href="#"><img src="images/174405.jpg" />
<h2>成都印象</h2>
<p>主营川菜,一起领略川菜的麻、辣、鲜、香</p>
</a>
</li>
</ul>
List segmentation - Automatic
data-autodividers = "true" partition can be configured to automatically generate the project. By default, delimited text created by a capital letter is the first list item text.
<ul data-role="listview" data-autodividers="true" data-inset="true">
<li><a href="#">Adele</a></li>
<li><a href="#">Agnes</a></li>
<li><a href="#">Albert</a></li>
<li><a href="#">Billy</a></li>
<li><a href="#">Bob</a></li>
<li><a href="#">Calvin</a></li>
<li><a href="#">Cameron</a></li>
<li><a href="#">Chloe</a></li>
<li><a href="#">Christina</a></li>
<li><a href="#">Diana</a></li>
<li><a href="#">Gabriel</a></li>
<li><a href="#">Glen</a></li>
<li><a href="#">Ralph</a></li>
<li><a href="#">Valarie</a></li>
</ul>
V. Form component
Text entry box
<input type="text" name="username" id="username" placeholder="请输入用户名" data-clear-btn="true"/><br />
ps: clear input box can add content button (one of the X input box icon to the right) using the data-clear-btn = "true" attribute. Clear button input box can be used in the <input> element, but not in <textarea> In. data-clear-btn search box default is "true", you can use the data-clear-btn = "false" to remove the icon.
Text field: For multi-line text entry using <textarea>
<textarea></textarea>
ps: When you type some text, text fields will be automatically resized to fit the newly added row
Radio buttons, check buttons
<fieldset data-role="controlgroup">
<legend>地图模式:</legend>
<label for="map1">街道</label>
<input type="radio" name="map" id="map1" value="Map" checked="checked" />
<label for="map2">卫星</label>
<input type="radio" name="map" id="map2" value="Satellite" />
<label for="map3">鸟瞰</label>
<input type="radio" name="map" id="map3" value="Hybrid" />
</fieldset>
ps: Use data-role = "controlgroup" button to put together
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>类型:</legend>
<input type="checkbox" name="genre" id="c1" />
<label for="c1" >古装</label>
<input type="checkbox" name="genre" id="c2" />
<label for="c2" >言情</label>
<input type="checkbox" name="genre" id="c3" />
<label for="c3" >警匪</label>
</fieldset>
Drop-down box
<select>
<option value="mon">星期一</option>
<option value="tue">星期二</option>
<option value="wed">星期三</option>
<option value="thu">星期四</option>
<option value="fri">星期五</option>
<option value="sat">星期六</option>
<option value="sun">星期日</option>
</select>
Custom drop-down box
<select data-native-menu="false">
<option value="">选择年份</option>
<option value="2019">2019年</option>
<option value="2020">2020年</option>
<option value="2021">2021年</option>
<option value="2022">2022年</option>
<option value="2023">2023年</option>
</select>
Entry packet data drop-down box
<select name="delivery" id="delivery" data-native-menu="false">
<option value="standard">地面</option>
<optgroup label="Digital">
<option value="barcode" selected>E-Ticket</option>
<option value="nfc">NFC</option>
</optgroup>
</select>
Disable the drop-down box
<option value="jQuery Mobile" disabled>jQueryMobile</option>
Multi-select drop-down box
<select name="day" id="day" multiple="multiple" data-native-menu="false">
<option>天</option>
<option value="mon">星期一</option>
<option value="tue">星期二</option>
<option value="wed">星期三</option>
<option value="thu">星期四</option>
<option value="fri">星期五</option>
<option value="sat">星期六</option>
<option value="sun">星期日</option>
</select>
Slider
<input type="range" name="points" id="points" value="50" min="0" max="100" data-popup-enabled="true" data-show-value="true" data-highlight="true">
Tumblers
<select id="slider" data-role="slider">
<option value="1">开</option>
<option value="0">关</option>
</select>
Switch
<input type="checkbox" data-role="flipswitch" name="switch" id="switch" data-on-text="打开" data-off-text="关闭">