出於測試目的我有一個基本形式與在同一行上排列的三個輸入:IE8輸入CSS樣式和對準
「姓名」(類型=文本),「密碼」(類型=文本)和「提交」(type = submit)**。
這樣的:
<body>
<form>
<input type="submit" class="search" value="log in"/>
<input type="text" value="username"/>
<input type="text" value="username"/>
</form>
</body>
如果我去測試在IE8切換兼容性視圖按鈕我有我的形式下移位,正確的,我也注意到了填充更改即使我申請重置CSS像這樣:
<style>
html, body, span,a, applet, object, iframe, h1, h2, h3, h4, h5,div, h6, p, blockquote, pre, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th,input, td {border: 0 none;margin: 0;padding: 0;
一個人怎麼能做到有形式穩定在相同的位置,所有這三個輸入對齊,並且在切換兼容性視圖按鈕時填充相同?
感謝
盧卡
您可以顯示相關的CSS? – roryf
你爲什麼要這樣?你寫你的網站爲一個「模式」。當您的網站不需要它時,爲什麼訪問者會切換到兼容模式? – RoToRa
我沒有任何我只是有這個表格的裸文件用於測試目的和我發佈的CSS是我所有的 – luca