jQuery Mobile:<select> s fieldgroup </select>的全宽

时间:2012-10-23 23:45:34

标签: jquery jquery-mobile

我有一个日期选择器水平

<fieldset data-role="controlgroup" data-type="horizontal">
    <legend>Your Birth Date:</legend>
    <select name="cboDay" id="cboDay"></select>
    <select name="cboMonth" id="cboMonth"></select>
    <select name="cboYear" id="cboYear"></select>
</fieldset>

如何强制它渲染全宽

1 个答案:

答案 0 :(得分:4)

也许导航栏可以选择吗?

示例:

代码:

<div data-role="navbar">
    <ul>
        <li><select name="cboDay" id="cboDay" data-corners="false" data-shadow="false"><option>Day</option><option value="1">1</option></select></li>
        <li><select name="cboMonth" id="cboMonth" data-corners="false" data-shadow="false"><option>Month</option><option value="1">1</option></select></li>
        <li><select name="cboYear" id="cboYear" data-corners="false" data-shadow="false"><option>Year</option><option value="1">1</option></select></li>
    </ul>
</div>