0

如何在单个水平线上对齐 Jquery 输入字段?

 <div data-role="fieldcontain">
        <fieldset data-role="controlgroup" data-type="horizontal">
            <legend>Term:</legend>
            <label for="txtSDate">
            </label>
            <input id="txtSDate" name="txtSDate" value="<%=sdate%>" placeholder="Enter start date" type="date"  data-inline="true"
                maxlength="12" />
            <label for="txtEDate">
            </label>
            <input id="txtEDate" name="txtEDate" value="<%=edate%>" type="date" maxlength="12" placeholder="Enter end date" />
        </fieldset>
    </div>
4

1 回答 1

0

也许你错过了fieldcontian?请尝试以下:

<div data-role="fieldcontain">
   <label for="txtSDate"></label>
   <input id="txtSDate" name="txtSDate" value="<%=sdate%>" placeholder="Enter start date"  type="date"  data-inline="true" maxlength="12" />
</div>
于 2014-03-09T01:44:50.097 回答