不同瀏覽器的margin值與padding值


IE-7:
 有默認外邊距margin樣式的元素: dd,menu, ol, ul, blockquote, body, dd, dl, form, h1-6, ul
有默認內邊距padding樣式的元素: th, td, textarea, input, fieldset, caption,

IE-8:
有默認外邊距margin樣式的元素: dd, menu, ol, ul, blockquote, body, dd, dl,fieldset, h1-6, hr, p, pre,
有默認內邊距padding樣式的元素: ul, th, textarea, td, ol, menu, legend, input, fieldset, button, [dir=rtl] ul, [dir=rtl] ol, [dir=rtl] menu
IE-9:
有默認外邊距margin樣式的元素(與IE-8的默認樣式一樣): dd, menu, ol, ul, blockquote, body, dd, dl, fieldset, h1-6, hr, p, pre,
有默認內邊距padding樣式的元素: ul, th, textarea, td, ol, menu, legend, input, fieldset, button, [dir=rtl] ul, [dir=rtl] ol, [dir=rtl] menu webkit:(ol ul, ul ol, ul ul, ol ol{margin-top:0;margin-bottom:0;}),
有默認外邊距margin樣式的元素: body, p, blockquote, hr, h1-6, ul, ol, menu, dir, dd(margin-start), dl, form, fieldset, input, textarea, keygen, select, button, isindex, datagrid, pre, xmp, plaintext, listing,
有默認內邊距padding樣式的元素: input, textarea, fieldset, legend
opera:
有默認外邊距margin樣式的元素: body, blockquote, dd, dl, fieldset, h1-6, hr, menu, p, pre, ul
有默認內邊距padding樣式的元素: ul, th, td, textarea, select, ol, menu, legend, keygen, input, fieldset, button, address,


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM