【问题标题】:jquery mobile horizontal controllgroup not displaying properly on mobilejquery mobile 水平控件组无法在移动设备上正确显示
【发布时间】: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.0jquery-1.11.3jquery.mobile-1.4.5。提供的 html 示例对我来说可以正常工作:i.stack.imgur.com/w77uc.png 其他浏览器中的问题、其他版本的 jQuery 或未显示的 html 的其他部分。

标签: jquery html css jquery-mobile


【解决方案1】:

当我从 jquerymobile 网站复制示例时,它们在复制时已在剪贴板中。我删除了所有的间距...

【讨论】:

    猜你喜欢
    • 2021-02-02
    • 1970-01-01
    • 1970-01-01
    • 2023-03-03
    • 2018-11-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-11
    相关资源
    最近更新 更多