回答
我想我有一個更好的解決方案,
<header data-role ="header" data-theme="b">
<h1 class="ui-title" role="heading">Staff</h1>
<div class="ui-btn-right" data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button" data-icon="gear">filter</a>
<a href="#" data-role="button" data-icon="grid">move</a>
</div>
</header>
截圖;
這可能是更容易地創建一個自定義導航欄,而不是修改標題欄,在這裏對文檔:http://jquerymobile.com/demos/1.0a4.1/#docs/toolbars/docs-navbar.html
+1。這種方法也解決了這個問題。謝謝Phill。 – Krishnan 2011-06-08 10:19:20
沒有,有2個硬限制,據我已經找到。我能夠想出的最好的辦法是獲得另一個無風格的鏈接。然而,navbars - 在我的一個項目中,我需要在標題區域有一些按鈕,我在它下面放置了一個導航欄,並且對結果感到滿意。
他們在這裏詳細解釋說:
我能夠通過下面的代碼來實現這一目標:
<div data-role ="header" data-theme="b">
<a href="#" data-role="button" data-theme="b" class="ui-btn-left" id="BackButtonHandler">Prev</a>
<div data-role="controlgroup" data-type="horizontal" style="margin-left:75px;margin-top:5px;" >
<a href="index.html" data-role="button" data-icon="arrow-l" >P.Week</a>
<a href="index.html" data-role="button" data-icon="arrow-r" data-iconpos="right">N.Week</a>
</div>
<a href="#" data-role="button" data-theme="b" class="ui-btn-right" id="BackButtonHandler">Next</a>
</div>
這對RC的新版本無效:( – 2012-03-16 12:59:08
這可能幫助:
<div class="ui-btn-right">
<!-- Home Button -->
<a href="index.html" data-role="button"
data-icon="refresh" data-iconpos="notext" data-direction="reverse" data-corners="true"
data-shadow="true" data-iconshadow="true" data-wrapperels="span" data-theme="b" title="Refresh">
</a>
<!-- Home Button -->
<a href="index.html" data-role="button"
data-icon="home" data-iconpos="notext" data-direction="reverse" data-corners="true"
data-shadow="true" data-iconshadow="true" data-wrapperels="span" data-theme="b" title="Home">
</a>
</div>
這給我那些漂亮的圓形按鈕,兩個並排在右側。
就像在移動文檔。
工程在1.1.1,沒試過最新RC
對不起,評論主頁按鈕,主頁按鈕,只是複製我的主頁按鈕兩次,並更改圖標 – mattdlockyer 2012-08-31 23:28:57
關於這個信息:
你可以在這裏找到: http://www.metaltoad.com/sites/default/files/Responsive-Widths_0.png
您可以使用此代碼:
<style type="text/css">
@media all{
.my-header-grid.ui-grid-b .ui-block-a { width: 30%; }
.my-header-grid.ui-grid-b .ui-block-b { width: 40%; }
.my-header-grid.ui-grid-b .ui-block-c { width: 30%; }
}
}
</style>
<div class="my-header-grid ui-grid-b" data-theme="a">
<div class="ui-block-a ui-bar-a" data-theme="a">
<div align="left" style="padding-left:5px;padding-top:3px;height:33px;height:40px;">
<a href="#" class="ui-btn-left" rel="external" data-mini="true" data-role="button" data-icon="back" data-theme="a">Back</a>
<a href="#" class="ui-btn-right" data-role="button" data-icon="gear" data-iconpos="notext">Edit</a>
</div>
</div>
<div class="ui-block-b ui-bar-a">
<div align="center" style="padding-top:3px;height:33px;text-align:center;height:40px;">
<div style="padding-top:7px;">
<article role="heading" aria-level="1">expand </article>
</div>
</div>
</div>
<div class="ui-block-c ui-bar-a">
<div align="right" style="padding-top:3px;height:33px;height:40px;">
<a href="#" class="ui-btn-left" data-role="button" data-icon="plus" data-iconpos="notext">Add</a>
<a href="#" class="ui-btn-right" rel="external" data-mini="true" data-role="button" data-icon="refresh" data-theme="a">Refresh</a>
</div>
</div>
</div><!-- /grid-b -->
如果任何機會你的編程無線th c#mvc razor引擎不要忘記用2 @就像所以@@ media一樣編寫css媒體標籤,因爲剃鬚刀引擎會將2 @視爲一個整體。
你看,可與所有在這個環節這裏顯示的設計的玩法:
http://jsfiddle.net/yakirmanor/BAat8/
IV增加了一些聯繫,但我建議你會這樣說的:
http://appcropolis.com/blog/advanced-customization-jquery-mobile-buttons/
簡單着牀是:
<header data-role ="header" data-theme="a">
<a data-icon="back" href="/" rel="external">Back</a>
<h1 class="ui-title" role="heading">Staff</h1>
<a class="ui-btn-right" data-icon="back" href="#" rel="external">Refresh</a>
</header>
或本:
<div data-role="header" data-theme="b">
<a data-icon="back" href="/" rel="external">Back</a>
<h1 class="ui-title" role="heading">Staff</h1>
<div class="ui-btn-right" data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button" data-icon="gear">filter</a>
<a href="#" data-role="button" data-icon="grid">move</a>
</div>
</div>
或本:
<div data-role="header" data-theme="e">
<div class="ui-btn-left" data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button" data-icon="gear">filter</a>
<a href="#" data-role="button" data-icon="grid">move</a>
</div>
<h1 class="ui-title" role="heading">Staff</h1>
<div class="ui-btn-right" data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button" data-icon="gear">filter</a>
<a href="#" data-role="button" data-icon="grid">move</a>
</div>
</div>
希望IV幫助。
- 1. 在jquery mobile中添加中間按鈕到頭部
- 2. JQuery Mobile 1.4 img標頭中的按鈕
- 3. jQuery標頭中的多個按鈕
- 4. 在jQuery Mobile中動態添加標頭標籤
- 5. jquery mobile。添加類時,點擊按鈕
- 6. 通過JQuery Mobile動態添加按鈕
- 7. jquery mobile navbar添加未知按鈕
- 8. 添加一個開關到頭jQuery Mobile
- 9. Jquery Mobile升級到1.4標頭鏈接按鈕
- 10. 在iOS中添加許多按鈕在iOS中
- 11. 在jquery mobile中動態添加切換按鈕
- 12. 如何在jquery mobile中添加css的主頁按鈕?
- 13. 如何在Jquery Mobile按鈕中添加圖片?
- 14. 在選擇框中添加搜索框按鈕jquery mobile
- 15. jQuery添加圖標到按鈕問題
- 16. 將圖標添加到jQuery按鈕
- 17. 如何在qooxdoo mobile的導航頁面中將按鈕添加到標題中
- 18. 將CSS添加到選中的單選按鈕並在jQuery中添加標籤
- 19. 添加許多按鈕到SplitContainer中(的WinForms)
- 20. jquery mobile和php標頭在下一頁打破按鈕
- 21. 在jQuery對話框中將按鈕添加到我的按鈕
- 22. 添加類按鈕jQuery中
- 23. jQuery Mobile按鈕
- 24. jQuery Mobile的標題中有多個按鈕和搜索位置?
- 25. 添加按鈕到標籤
- 26. 添加按鈕collapsibleset頭
- 27. 如何在圓形矩形按鈕中添加箭頭圖標
- 28. 如何將jQuery UI按鈕圖標添加到輸入按鈕?
- 29. 添加一個ID到jQuery Mobile後退按鈕
- 30. 使用jquery mobile動態添加按鈕到列表視圖
你也可以只添加一個div: