我有一個頁面,頁面底部有兩個提交按鈕。一個用於提交發布到某個操作的頁面,另一個用於將該帖子取消爲另一個操作。無論出於何種原因,IE在並排放置這兩個按鈕時遇到了問題。 Firefox沒有問題。如何對齊兩個表單提交
這裏是我的腳本:
<div class="button_row">
using (Html.BeginForm("Edit", "Design"))
{ %>
<div class="button_cell_left">
<input type="submit" value="Update" />
</div>
<% } %>
<% Html.EndForm(); %>
using (Html.BeginForm("Review", "Design"))
{ %>
<div class="button_cell_right">
<input type="submit" value="Cancel"/>
</div>
<% } %>
<% Html.EndForm(); %>
下面是這些類的CSS:
.button_row { float:left; width: 100%; }
.button_cell_left {float:left; width: 20%; }
.button_cell_right {float:left; width: 20%; }
20%的寬度足夠餘地明智的這些按鈕。就像我在ie中說的,他們不會停留在同一行,但在Firefox中,他們會。我的問題是爲什麼給我的代碼?
由於提前, 比利
這是訣竅。謝謝! – 2010-01-16 14:58:59