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

所属分类: 网页制作 / HTML/Xhtml 阅读数: 792
收藏 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;}
更多精彩内容其他人还在看

src或者css背景图的url值为base64编码代码

base64简单地说,它把一些 8-bit 数据翻译成标准 ASCII 字符,网上有很多免费的base64 编码和解码的工具,目前,IE8、Firfox、Chrome、Opera浏览器都支持这种小文件嵌入
收藏 0 赞 0 分享

按钮与回车键关联的js代码

按钮与回车键如何关联,在本文有个不错的示例,感兴趣的朋友可以参考下,希望对大家有所帮助
收藏 0 赞 0 分享

表单元素属性readonly和disabled使用对比

表单元素属性readonly和disabled在适应范围、操作、表单提交等等方面都有所不同,至于有哪些不同,感兴趣的朋友可以了解下本文
收藏 0 赞 0 分享

a标签伪类的作用及书写顺序是什么

a标签的伪类只不过是又结合了不同的动作顺序,动作的触发顺序决定了伪类的顺序必须按lvha来写,接下来为大家详细介绍下,感兴趣的朋友不妨参考下
收藏 0 赞 0 分享

HTML+css制作简易进度条

进度条想必大家并不陌生吧,而且实现方法各种各样,在本文为大家讲解下利用html+css实现进度条的制作,感兴趣的朋友可以尝试操作下
收藏 0 赞 0 分享

html左右布局示例代码

左右布局的形式想必大家都熟悉吧,在本文有个不错的示例,希望可以帮助大家更好的了解左右布局的概念
收藏 0 赞 0 分享

Form表单的action和onSubmit示例介绍

action是form的属性,onSubmit为事件,要说执行的先后顺序,个人理解是onSubmit在先,下面有个不错的示例可以帮助大家更好的立即,感兴趣的朋友不要错过
收藏 0 赞 0 分享

HTML页面加载和解析流程详细介绍

浏览器加载和渲染html的顺序、如何加快HTML页面加载速度、HTML页面加载和解析流程等等,在本文将为大家详细介绍下,感兴趣的朋友不要错过
收藏 0 赞 0 分享

Html+CSS浮动的广告条实现分解

广告条想必大家并不陌生吧,在本文将为大家详细介绍下如何使用Html+CSS实现浮动的广告条,感兴趣的朋友可以参考下
收藏 0 赞 0 分享

使select在选中/聚焦时列出所有选项目前比较好的处理方式

在页面上使用快捷键盘快捷定位到支付方式选择框(一个下拉列表)并进行选择,在网上找了些资料后,得出目前比较好的处理方式在此与大家分享下,希望对大家有所帮助
收藏 0 赞 0 分享
查看更多