0
我已經放置樣式在頁面上幾個文本輸入:如何更正複選框的位置,當它是一個與jQuery UI輸入文本相同的頁面?
UI的自動完成輸入UI的小部件,內容UI刀尖所有
現在我需要一個複選框添加到相同的頁面。但不知何故它被集中。我怎樣才能讓它左對齊?
HTML:
<div class="ui-widget"><label for="link">Link: </label><input type="text" id="link" name="link" placeholder="" class="ui-autocomplete-input ui-widget-content ui-corner-all"></div>
<div class="ui-widget"><input type="checkbox" id="cb-anonymous">Anonymous</div>
CSS:
label {
width: 150px;
display: inline-block;
font-size: 12px;
font-weight: bold;
font-family: Verdana, Arial, sans-serif;
}
input {
width: 200px;
display: inline-block;
}
感謝。看起來我選擇了錯誤的例子,因爲我在頁面上也有組合框jQuery UI元素,'input' style也適用於它們。當我將其改爲輸入[type =「text」]時,它們的按鈕移動到下一行。 –
OK,'#cb-anonymous {width:auto;幫助。 –