[英]How to set custom icon at left align in the Jquery mobile header
I am using custom icon in the header, Icon is displaying. 我在标题中使用自定义图标,正在显示图标。 But I need to set it in the left side not at center.
但是我需要将其设置在左侧而不是居中。 How to do that,
怎么做,
<div data-role="header" data-theme="a">
<h3>
<div style="float: left;">
<img src="img/profileOrange.png">
</div>
<div id="profileName">My Cards</div>
</h3>
</div>
screenshot for above code, 以上代码的屏幕截图,
But I need the Icon to be displayed at left side of the header not at center 但是我需要将图标显示在标题的左侧而不是中心
instead of float left, use a class="ui-btn-left"
on the div 而不是向左浮动,请在div上使用
class="ui-btn-left"
working example http://jsfiddle.net/h8JFv/16/ 工作示例 http://jsfiddle.net/h8JFv/16/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.