IE6下网页制作参考 IE6 默认样式

所属分类: 网页制作 / HTML/Xhtml 阅读数: 840
收藏 0 赞 0 分享
这其实不是ie官方的文档,好像是别人经过实践搞出来的ie6的默认样式,这个对我们驯服ie6很有参考价值。你会从根本理解ie出现的那些bug的原因。不过可惜ie不像firefox哪样通过在地址栏输入命令来直接查看firefox的默认样式。
=======================================
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;}
更多精彩内容其他人还在看

HTML中的标签和元素的区别详解

很多人可能都没有把哪个叫标签,哪个叫元素这个概念搞清楚,包括之前的我也是,一直都是混淆着,特意搜索查阅了一些资料,现将我得出的结论写出来,与大家分享下
收藏 0 赞 0 分享

HTML中的base标签使用详解

在requireJS中,有一个属性叫baseURL,通过设置baseURL,我们可以将需要加载的文件路径写成相对于项目的,而不是相对于当前页面的
收藏 0 赞 0 分享

HTML select option基础理解及使用

本文将阐述下HTML select option基础(options[ ]数组的属性、option的方法)及应用介绍,感兴趣的朋友可以参考下哈,希望对你有所帮助
收藏 0 赞 0 分享

html固定标题列、标题头table具体实现代码

为了布局的美观度需要在html中固定标题列、标题头,本文整理了一些相关实现技巧,经测试还不错,感兴趣的朋友可以参考下哈,希望对你有所帮助
收藏 0 赞 0 分享

使用input type=text value=str取值不完全解决方案

想要取得格式化之后的数据时,在value=方法取值时,只能取到“XXXX年XX月XX日”,后面的“星期X”一直取不到解决方法如下,感兴趣的朋友可以参考下
收藏 0 赞 0 分享

html滚动条 textarea属性设置

本文介绍html滚动条 textarea属性设置:overflow内容溢出时的设置,scrollbar-3d-light-color立体滚动条亮边的颜色等等相关设置,有需要的朋友可以详细参考下,希望对你们有帮助
收藏 0 赞 0 分享

flash嵌入html 在html网页代码中嵌入Flash文件的解决方案(上)

在HTML代码中嵌入Flash文件一直都是广大web爱好者所所喜欢挑战的事,也算不上什么挑战(对于新手朋友来说吧)好了,闲话不多说,切入正题
收藏 0 赞 0 分享

flash嵌入html 在html网页代码中嵌入Flash文件的解决方案(下)

在HTML代码中嵌入Flash文件一直都是广大web爱好者所所喜欢挑战的事,也算不上什么挑战(对于新手朋友来说吧)好了,闲话不多说,切入正题
收藏 0 赞 0 分享

网页WB.ExecWB控件打印方法调用说明及参数介绍

网页WB.ExecWB控件打印方法调用WB.ExecWB(4,1) 说明及参数介绍:4,1 保存网页;4,2 保存网页(可以重新命名) ;6,1 直接打印等等有需要的朋友可以参考下
收藏 0 赞 0 分享

html+css布局的三种方式(自然布局/流动布局/定位布局)

html+css布局的三种方式(自然布局/流动布局/定位布局)一些新手朋友会很陌生,接下来为您详细介绍,感兴趣的朋友可以了解下
收藏 0 赞 0 分享
查看更多