gpt4 book ai didi

css - jQuery 手机 : Blue focus halo gets clipped when placing controls inside ui-grid

转载 作者:行者123 更新时间:2023-11-28 10:51:10 25 4
gpt4 key购买 nike

我正在尝试使用“ui-grid-a”将文本字段分组到同一行。

但是蓝色光晕在字段的左侧和右侧被剪掉了。

    <ul data-role="listview" data-inset="true">
<li>
<label>Label A</label>
<input data-id="name" type="text" value="" placeholder="" title="">
</li>
<li>
<div class="ui-grid-a">
<div class="ui-block-a">
<label>Label B</label>
<input data-id="email" type="text" value="" placeholder="" title="">
</div>
<div class="ui-block-b">
<label>Label C</label>
<input data-id="phone" type="text" value="" placeholder="" title="">
</div>
</div>
</li>
</ul>

此处示例:http://jsfiddle.net/N8ZUt/1/

将焦点设置到“标签 a”,然后是“标签 b”,您应该会看到区别。

最佳答案

你只需要添加一点填充:

li .ui-block-a, li .ui-block-b  {
padding-right: 4px;
padding-left: 4px;
}

此外,为了保持对齐,我已将您的第一个列表项放入具有相同填充的 ui-grid-solo 中。

这是您更新的 fiddle : http://jsfiddle.net/ezanker/N8ZUt/4/

关于css - jQuery 手机 : Blue focus halo gets clipped when placing controls inside ui-grid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20403617/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com