Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html jquerymobile中的标签宽度_Html_Jquery Ui_Css_Jquery Mobile - Fatal编程技术网

Html jquerymobile中的标签宽度

Html jquerymobile中的标签宽度,html,jquery-ui,css,jquery-mobile,Html,Jquery Ui,Css,Jquery Mobile,我正在使用jquery mobile构建我的ui 但问题是我无法调整标签的宽度 你能告诉我怎样把我所有标签的宽度调整到108px吗 代码如下 <div data-role="fieldcontain" class="ui-field-contain ui-body ui-br"> <label data-role="none" for="basic">Zip</label> <input style="width: 280px;" data-role=

我正在使用jquery mobile构建我的ui 但问题是我无法调整标签的宽度 你能告诉我怎样把我所有标签的宽度调整到108px吗

代码如下

<div data-role="fieldcontain" class="ui-field-contain ui-body ui-br">
<label data-role="none" for="basic">Zip</label>
<input style="width: 280px;" data-role="none" type="text"
    name="name" id="basic" value="">
</div>

拉链
我正在尝试为所有具有恒定宽度的标签实现类似的功能


标记中存在一些问题-标签的
属性与输入的名称不同。这会阻止jQuery Mobile正确设置内容的样式。例如,这:

<div data-role="fieldcontain" class="ui-field-contain ui-body ui-br">
    <label data-role="none" for="basic">Phone</label>
    <input style="width: 280px;" data-role="none" type="text" name="name" id="basic" value=""  />
</div>
完成后,jquerymobile应该让表单按照您想要的方式工作

<div data-role="fieldcontain" class="ui-field-contain ui-body ui-br">
    <label data-role="none" for="basic">Phone</label>
    <input style="width: 280px;" data-role="none" type="text" name="basic" id="basic" value=""  />
</div>