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

所属分类: 网页制作 / HTML/Xhtml 阅读数: 809
收藏 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的表单form以及form内部标签的使用

这篇文章主要介绍了HTML的表单form以及form内部标签的使用,需要的朋友可以参考下
收藏 0 赞 0 分享

图片作为背景并且是链接的写法(背景图片加链接)

这篇文章主要介绍了图片作为背景并且是链接的写法(背景图片加链接),需要的朋友可以参考下
收藏 0 赞 0 分享

网页嵌入百度地图和使用百度地图api自定义地图的详细步骤

这篇文章主要介绍了网页嵌入百度地图和使用百度地图api自定义地图的详细步骤,需要的朋友可以参考下
收藏 0 赞 0 分享

在html中禁用自动完成不让其显示历史记录

输入框输入内容时总是显示历史输入历史记录,只要在html中禁用自动完成就可以不显示了,下面大家简单介绍下
收藏 0 赞 0 分享

html设置加粗、倾斜、下划线、删除线等字体效果

这篇文章主要介绍了html设置加粗、倾斜、下划线、删除线等字体效果所用到的一些标签,感兴趣的朋友可以参考下
收藏 0 赞 0 分享

Form表单提交刷新页面不跳转源码设计

这篇文章主要介绍了Form表单提交刷新页面如何不跳转,实现源码如下,大家不妨参考参考
收藏 0 赞 0 分享

html设置字体颜色的方法和使用ps获取html准确字体颜色的方法

这里为大家介绍三种字体颜色设置包括HTML字体、CSS文字颜色、css超链接字体颜色,同时介绍了使用PS获取准确的颜色值方法。大家平时可以灵活扩展使用对字体、对背景设置颜色值
收藏 0 赞 0 分享

html设置虚线边框的方法

用到CSS样式和HTML标签元素 为了对html不同标签加边框虚线,我们选择几个常用标签对齐设置边框虚线效果。 1、html常用标签 p标签 span ul li table tr td 2、实例用到CSS属性单词 border width height 3
收藏 0 赞 0 分享

使用css美化html表单控件详细示例(表单美化)

这篇文章主要介绍了使用css美化html表单控件详细示例(表单美化),需要的朋友可以参考下
收藏 0 赞 0 分享

html插入图片示例(html添加图片)

这篇文章主要介绍了html插入图片示例(html添加图片),需要的朋友可以参考下
收藏 0 赞 0 分享
查看更多