IE6下網(wǎng)頁(yè)制作參考 IE6 默認(rèn)樣式
這其實(shí)不是ie官方的文檔,好像是別人經(jīng)過(guò)實(shí)踐搞出來(lái)的ie6的默認(rèn)樣式,這個(gè)對(duì)我們馴服ie6很有參考價(jià)值 。你會(huì)從根本理解ie出現(xiàn)的那些bug的原因 。不過(guò)可惜ie不像firefox哪樣通過(guò)在地址欄輸入命令來(lái)直接查看firefox的默認(rèn)樣式 。
=======================================
INTERNET EXPLORER 6 DEFAULT STYLE SHEET
=======================================
****** HYPOTHETICAL *******************
This is a work in progress.
Values are purely indicative.
For any suggestion or addenda,
please
contact me.
[Back to CSS Test]
================================
/* Standard HTML elements
============================
Compare with the default style sheet
for HTML 4 (local copy).
These values may be affected by the
hasLayout property.
We will not take in account
the frame and frameset elements.
The table elements are not reviewed, due to
the lack of support for the corresponding
’display’ values. */
The uncertain values are marked with ’’ and ’’.
/* Block-level elements */
html, body,
div, p,
blockquote,
ul, ol, dl,
dt, dd, address,
form, fieldset,
frame, frameset,
h1, h2, h3, h4,
h5, h6, hr, pre {display: block;}
head {display: none;}
html {margin: 0;}
body {margin: 8px;}
div {margin: 0;}
p {margin: 1em 0;}
blockquote {margin: 1em 40px;}
ul {margin: 1em 0 1em 40px; list-style-type: disc;}
li {display: list-item;}
ol {margin: 1em 0 1em 40px; list-style-type: decimal;}
ul ul {margin: 0 0 0 40px; list-style-type: circle;}
ul ul ul {margin: 0 0 0 40px; list-style-type: square;}
dl {margin: 1em 0;}
dd {margin-left: 40px;}
address {margin: 1em 0; font-style: italic;}
form, fieldset {margin: 0;}
fieldset {border: 1px inset sistem color;}
h1, h2, h3, h4, h5, h6 {font-weight: bold;}
/* the following font size and vertical values are purely indicative,
since they depend on the font size/family set on the
BODY element */
h1 {font-size: 2em; margin: .6em 0;}
h2 {font-size: 1.5em; margin: .8em 0;}
h3 {font-size: 1.1em; margin: 1em 0; }
h4 {font-size: 1em; margin: 1.3em 0;}
h5 {font-size: 0.8em; margin: 1.6em 0;}
h6 {font-size: 0.6em; margin: 2.3em 0;}
hr {border: 2px outset sistem color;}
pre {margin: 1em 0; font-family: monospace; white-space: pre;}
/* Inline elements */
a, i, cite, em, var, acronym,
tt, code, kdb, samp, del, ins,
u, dfn, sub, sup, big, small {display: inline; }
a:link {color: blue; text-decoration: underline; }
a:visited {color: purple; text-decoration: underline;}
i, cite, em, var {font-style: italic;}
tt, code, kbd, samp {font-family: monospace;}
del {text-decoration: line-through;}
u, ins {text-decoration: underline;}
sub {
vertical-align: sub;
font-size: smaller;
line-height: value;
} /* greater than ’normal’ */
sup {
vertical-align: super;
font-size: smaller;
line-height: value;
} /* less than ’normal’ */
big {font-size: larger;}
small {font-size: smaller;}
/* Replaced elements */
/* We will take in account only INPUT and TEXTAREA */
input, textarea {display: inline-block;}
相關(guān)經(jīng)驗(yàn)推薦
- IE6/7中使用setAttribute設(shè)置table的cellpadding和cellspacing的Bug
- 解決jquery的.animate函數(shù)在IE6下的問(wèn)題
- IE6下通過(guò)a標(biāo)簽點(diǎn)擊切換圖片的問(wèn)題
- 兼容ie6瀏覽器的php下載文件代碼分享
- IE6 注釋引起的文字溢出和浮動(dòng)錯(cuò)位的解決思路
- ie6 注釋引起的問(wèn)題
- 關(guān)于onScroll事件在IE6下每次滾動(dòng)觸發(fā)三次bug說(shuō)明
- IE6 float:left margin-left出現(xiàn)兩倍像素
- 全集 IE6中PNG Alpha透明
- IE6、IE7中獲取Button元素的值的bug說(shuō)明
