0
我創建了包含選擇(固定左邊),輸入(流體中心)和按鈕(右邊固定)的三列固定流體寬度佈局。爲什麼select-col
中的選擇框不可點擊/展開/打開?我正在觀察IE,Firefox和Chrome中的這種行爲。無法在3列固定流體寬度佈局中打開選擇
我該如何解決這個問題並達到預期的佈局結果?
實施例:http://jsfiddle.net/cegyz1cd/2/
<div class="select-col">
<select>
<option value="0">Option 0</option>
<option value="1">Option 1</option>
</select>
</div>
<div class="input-btn-col">
<div class="input-col">
<input type="text" />
</div>
<div class="btn-col">
<button type="button">Go</button>
</div>
</div>
* {
box-sizing: border-box;
}
select, input {
width: 100%;
}
.select-col {
float: left;
width: 150px;
margin-right: -150px;
}
.input-btn-col {
width: 100%;
padding-left: 150px;
float: left;
}
.input-col {
width: 100%;
padding-right: 110px;
float: left;
}
.btn-col {
float: left;
width: 110px;
margin-bottom: 0;
margin-left: -110px;
}
我想這是這樣的。更新了原始問題。尋找解決方案。謝謝。 – kspearrin 2014-12-08 03:43:45
@kspearrin我的問題沒有看到任何新東西。檢查解決方案。以前,我只寫了診斷。答案現在已經完成。 – Verhaeren 2014-12-08 03:50:49
我只更新它,以補充說我還在尋找解決方案,而不僅僅是一個診斷。 IE8不支持自「calc」以來支持IE8 +的任何想法? – kspearrin 2014-12-08 03:55:22