回答
我想我有一个更好的解决方案,
<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: