本文介绍了右对齐jQuery Mobile中的元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经创建了以下元素形式:
I've created this elements form:
<div class = "ui-grid-a">
<div class= "ui-block-a">
<div data-role="fieldcontain" class = "ui-hide-label">
<label for="birth-place">Birth Place</label>
<input type="text" name="birth-place" id="birth_place" value="" placeholder="Birth Place" />
</div>
</div>
<div class = "ui-block-b">
<div data-role = "fieldcontain" class="ui-hide-label">
<label for="province">Province</label>
<input type="text" name="province" id="province" value="" placeholder="PR" />
</div>
</div>
</div>
,我想将元素province
右对齐.我该怎么办?
and I want to align the element province
to the right. How can I do that?
推荐答案
尝试一下:<span style="float:right"><label for="province">Province</label></span>
(当然,您也可以将其放在外部CSS文件中)
Try this:<span style="float:right"><label for="province">Province</label></span>
(of course you can put this also in a external css file)
这篇关于右对齐jQuery Mobile中的元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!