有沒有人知道爲什麼<legend>
標籤沒有集中在JQuery手機中?例如,我嘗試了下面的代碼。圖例標籤包含文字左對齊的JQuery移動?
<fieldset data-role="controlgroup" data-type="horizontal" data-theme="a">
<legend>I would this site.<legend>
<input type="radio" name="radio-choice-2-6" id="radio-choice-1-6" value="choice-1-6" />
<label for="radio-choice-1-6">1</label>
<input type="radio" name="radio-choice-2-6" id="radio-choice-2-6" value="choice-2-6" />
<label for="radio-choice-2-6">2</label>
<input type="radio" name="radio-choice-2-6" id="radio-choice-3-6" value="choice-3-6" />
<label for="radio-choice-3-6">3</label>
<input type="radio" name="radio-choice-2-6" id="radio-choice-4-6" value="choice-4-6" />
<label for="radio-choice-4-6">4</label>
<input type="radio" name="radio-choice-2-6" id="radio-choice-5-6" value="choice-5-6" />
<label for="radio-choice-5-6">5</label>
</fieldset>
當我檢查在移動和模擬器的<legend>
標籤保持文本,即使我將樣式text-align: center
爲<legend>
標籤左對齊。但是,如果我把一個更長的文本,那麼它的工作正常。例如:
<fieldset data-role="controlgroup" data-type="horizontal" data-theme="a">
<legend><p>If given the choice, I would rather spend time with my family than with friends or working.</p><legend>
<input type="radio" name="radio-choice-2-8" id="radio-choice-1-8" value="choice-1-8" />
<label for="radio-choice-1-8">1</label>
<input type="radio" name="radio-choice-2-8" id="radio-choice-2-8" value="choice-2-8" />
<label for="radio-choice-2-8">2</label>
<input type="radio" name="radio-choice-2-8" id="radio-choice-3-8" value="choice-3-8" />
<label for="radio-choice-3-8">3</label>
<input type="radio" name="radio-choice-2-8" id="radio-choice-4-8" value="choice-4-8" />
<label for="radio-choice-4-8">4</label>
<input type="radio" name="radio-choice-2-8" id="radio-choice-5-8" value="choice-5-8" />
<label for="radio-choice-5-8">5</label>
</fieldset>
請問有任何問題,請大聲回答?
有你試圖使''legend'顯示:block'明確,而且它的不浮動? 'fieldset'標記同樣適用 – 2013-04-26 11:48:50