我有這個簡單的div,在jQuery Mobile的風格發展:如何避免ui-block div(jquery mobile)在Internet Explorer中重疊?
<fieldset class="ui-grid-b">
<div class="ui-block-a">
<legend>Question 1 haveng a looong text to explain what the user need to answer</legend>
</div>
<div class="ui-block-b">
<select name="question1" id="question1">
<option value='0'>Choose...</option>
<option value='1'>Option 1</option>
</select>
</div>
<div class="ui-block-c" id="id-error">
<label for="question1" class="error" generated="true"></label>
</div>
</fieldset>
CSS:
.ui-grid-b .ui-block-a {
padding-top:20px;
width: 60%;
}
.ui-grid-b .ui-block-b {
width: 30%;
}
.ui-grid-b .ui-block-c {
width: 10%; padding-top:20px;
}
代碼代表三列劃分(DIV UI-塊一個,UI塊頁面-b,ui-block-c),分別佔整個頁面空間的60%,30%和10%。所有在地球上的每個瀏覽器上工作正常,但不在瀏覽器上。在資源管理器中,如果ui-block-a文本太長,而不是繼續新行,則繼續下的 select。我如何避免ui-block-a與ui-block-b重疊?
你已經把問題置中了!刪除所有的圖例標籤足以在所有瀏覽器上擁有正確的行爲(並且我學到了新的東西)非常感謝! –