[英]Align icons at left and Right corner of navbar of jQuery Mobile
I'm using below code to add nav bar to my mobile website. 我正在使用以下代码将导航栏添加到我的移动网站。 Here I have two icon on the left side of nav bar.
在这里,我在导航栏的左侧有两个图标。 But I want to position the Next icon to the Right Side such that Two icon will be on corner of left and Right Side.
但是我想将“下一个”图标放置在右侧,以使“两个”图标位于左侧和右侧的角上。
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script> <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script> <div data-role="page"> <div data-role="footer" data-position="fixed" data-tap-toggle="false" data-theme="a"> <div data-role="navbar" data-iconpos="left"> <ul> <li><a href="#one" data-icon="arrow-l" >Previous</a></li> <li><a href="#two" data-icon="arrow-r" >Next</a></li> </ul> </div><!-- /navbar --> </div> </div>
Here is the picture, I'd like to get the output 这是图片,我想获取输出
For some Reason the code is not working , So here is the link for my demo snippet Demo Snippets 由于某种原因,代码无法正常工作,因此,这是我的演示代码段的链接演示代码段
You have to add some css fo this 您必须为此添加一些CSS
.ui-block-b a .ui-btn-inner .ui-icon{
left: auto;
right: 5px;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.