【发布时间】:2014-10-12 05:36:07
【问题描述】:
<form>
<div class="ui-field-contain">
<fieldset data-role="controlgroup">
<legend>Username:</legend>
<input type="text" name="username">
</fieldset>
</div>
</form>
如果我设置表单宽度
form {
width: 300px;
}
在 Iphone 4s 上,纵向模式下,用户名标签与用户名输入显示在同一行,并且用户名标签被剪裁。如果用户名标签和输入都没有足够的宽度,则标签应显示在输入上方。为什么?如果我删除宽度:300px,它会很好地响应宽度。
在横向模式下,用户名标签显示在输入上方(如预期的那样)。
谢谢
【问题讨论】:
标签: html iphone jquery-mobile