【发布时间】:2015-08-06 22:30:51
【问题描述】:
我试图让这个控制组保持一致。当我在移动设备上或浏览器最小宽度上查看此内容时,我得到以下图像。我如何对齐它们,如果收音机太大,让它移到下一行。
<form id="myResourcesResourceTypes">
<div class="ui-field-contain">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true" >
<legend>Resources:</legend>
<input type="radio" name="radio-choice-h-2" id="radio-choice-h-2a" value="games" checked="checked">
<label for="radio-choice-h-2a">Games</label>
<input type="radio" name="radio-choice-h-2" id="radio-choice-h-2b" value="teams">
<label for="radio-choice-h-2b">Teams</label>
<input type="radio" name="radio-choice-h-2" id="radio-choice-h-2c" value="league">
<label for="radio-choice-h-2c">Leagues</label>
<input type="radio" name="radio-choice-h-2" id="radio-choice-h-2d" value="tournaments">
<label for="radio-choice-h-2d">Tournaments</label>
</fieldset>
</div>
</form>
【问题讨论】:
-
你应该提供你的css。
-
我使用的是默认的jquery mobile css。我试图解决这个问题的一切都不起作用,所以我只是删除了它。这似乎是默认行为。
-
我尝试使用 Firefox 39.0、jquery-1.11.3 和 jquery.mobile-1.4.5。提供的 html 示例对我来说可以正常工作:i.stack.imgur.com/w77uc.png 其他浏览器中的问题、其他版本的 jQuery 或未显示的 html 的其他部分。
标签: jquery html css jquery-mobile