国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > C > 正文

jQuery移動頁面開發(fā)中主題按鈕的設(shè)計示例

2020-01-26 14:48:02
字體:
供稿:網(wǎng)友

在白色圖標(biāo)后的半透明的黑色圓圈確保了在任何背景色下圖片都能夠清晰顯示,也使它能很好的工作在Jquery Mobile主題系統(tǒng)中。以下是一些在不同主題樣式下圖標(biāo)按鈕的例子

"A"主題下的圖標(biāo)按鈕 data-theme="a"

<div data-role="content">  <div data-role="controlgroup" data-type="horizontal"> <a href="index.html" data-role="button" data-icon="bars" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="edit" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="arrow-l" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="arrow-r" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="arrow-u" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="arrow-d" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="delete" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="plus" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="minus" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="check" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> </div> <div data-role="controlgroup" data-type="horizontal"> <a href="index.html" data-role="button" data-icon="gear" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="refresh" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="forward" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="back" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="grid" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="star" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="alert" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="info" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="home" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> <a href="index.html" data-role="button" data-icon="search" data-iconpos="notext" data-theme="a" data-inline="true">My button</a> </div></div>

2015124175139841.jpg (812×135)

"B"主題下的圖標(biāo)按鈕 data-theme="b"

2015124175201898.jpg (809×114)

"C"主題下的圖標(biāo)按鈕 data-theme="c"

2015124175220352.jpg (820×123)

主題按鈕

Query移動具有豐富的主題系統(tǒng),讓您完全控制如何按鈕風(fēng)格。當(dāng)鏈接添加到一個容器,它是自動分配符合其母棒或內(nèi)容框的視覺整合按鈕到父容器的主題樣本的信,就像一條變色龍。所以一個按鈕放在內(nèi)容與主題為“一”(在默認(rèn)主題黑色)將自動分配按鈕的主題是“a”(在默認(rèn)主題木炭)。a為黑,b為灰底藍(lán),c為灰底灰,d白底白色 ,e黃底黃色。這是默認(rèn)的主題的主題對按鈕的例子。所有的按鈕都有相同的HTML標(biāo)記:

<div data-role="content">  <div class="ui-body ui-body-a"><h4>Swatch "a"</h4><a href="index.html" data-role="button">Button</a></div> <div class="ui-body ui-body-b"><h4>Swatch "b"</h4><a href="index.html" data-role="button">Button</a></div> <div class="ui-body ui-body-c"><h4>Swatch "c"</h4><a href="index.html" data-role="button">Button</a></div> <div class="ui-body ui-body-d"><h4>Swatch "d"</h4><a href="index.html" data-role="button">Button</a></div> <div class="ui-body ui-body-e"><h4>Swatch "e"</h4><a href="index.html" data-role="button">Button</a></div></div>

2015124175303944.jpg (825×645)

分配系統(tǒng)樣式 data-theme

給按鈕增加data-theme="字母"屬性,可以手動的給按鈕添加樣式,使得按鈕不一定非要與父容器的樣式相符

<div data-role="content">  <a href="index.html" data-role="button" data-theme="a" data-icon="arrow-l" data-inline="true">Swatch a</a> <a href="index.html" data-role="button" data-theme="b" data-icon="arrow-l" data-inline="true">Swatch b</a> <a href="index.html" data-role="button" data-theme="c" data-icon="arrow-l" data-inline="true">Swatch c</a> <a href="index.html" data-role="button" data-theme="d" data-icon="arrow-l" data-inline="true">Swatch d</a> <a href="index.html" data-role="button" data-theme="e" data-icon="arrow-l" data-inline="true">Swatch e</a></div>

2015124175326633.jpg (820×74)

主題的變化 ui-body

默認(rèn)有五套風(fēng)格,ui-body-a,ui-body-b,ui-body-c,ui-body-d,ui-body-e

<div class="ui-body ui-body-a"> <a href="index.html" data-role="button" data-theme="a" data-icon="arrow-l" data-inline="true">Swatch a</a> <a href="index.html" data-role="button" data-theme="b" data-icon="arrow-l" data-inline="true">Swatch b</a> <a href="index.html" data-role="button" data-theme="c" data-icon="arrow-l" data-inline="true">Swatch c</a> <a href="index.html" data-role="button" data-theme="d" data-icon="arrow-l" data-inline="true">Swatch d</a> <a href="index.html" data-role="button" data-theme="e" data-icon="arrow-l" data-inline="true">Swatch e</a></div>

2015124175344754.jpg (819×87)

<div class="ui-body ui-body-b"> <a href="index.html" data-role="button" data-theme="a" data-icon="arrow-l" data-inline="true">Swatch a</a> <a href="index.html" data-role="button" data-theme="b" data-icon="arrow-l" data-inline="true">Swatch b</a> <a href="index.html" data-role="button" data-theme="c" data-icon="arrow-l" data-inline="true">Swatch c</a> <a href="index.html" data-role="button" data-theme="d" data-icon="arrow-l" data-inline="true">Swatch d</a> <a href="index.html" data-role="button" data-theme="e" data-icon="arrow-l" data-inline="true">Swatch e</a></div>

2015124175401990.jpg (814×84)

2015124175420387.jpg (833×395)

發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表

圖片精選

主站蜘蛛池模板: 庆云县| 措美县| 台北市| 安溪县| 石楼县| 西城区| 石城县| 安丘市| 康马县| 额尔古纳市| 南丰县| 武安市| 贵德县| 察隅县| 红河县| 广东省| 龙口市| 灵武市| 揭东县| 邵阳县| 清苑县| 宁阳县| 江城| 昭平县| 资阳市| 安泽县| 龙州县| 靖州| 皋兰县| 上杭县| 遂平县| 茶陵县| 古丈县| 烟台市| 普洱| 莆田市| 雷波县| 徐水县| 东城区| 墨脱县| 天等县|