一个先前存在的只支持IE的站点的CSS重置表,该站点希望改善跨浏览器体验?

一个先前存在的只支持IE的站点的CSS重置表,该站点希望改善跨浏览器体验?,css,internet-explorer,cross-browser,css-reset,Css,Internet Explorer,Cross Browser,Css Reset,我正在一个内部自定义ASP.NET站点上工作,该站点由客户指定为只需要在Internet Explorer中工作。这意味着没有人提出任何资源来确保它在其他浏览器中工作并且看起来很好,尽管没有使用仅限IE的技术或类似的技术 由于最终会有人希望其他浏览器工作,我想知道是否存在类似CSS重置样式表的东西,可以帮助其他浏览器的布局更像IE 我正在寻找一个重置样式表,专门用于使Firefox、Chrome等更像IE(我相信没有人会对此留下讨厌的评论),它不会破坏太多现有布局(目前仅在IE7上测试) 我知道

我正在一个内部自定义ASP.NET站点上工作,该站点由客户指定为只需要在Internet Explorer中工作。这意味着没有人提出任何资源来确保它在其他浏览器中工作并且看起来很好,尽管没有使用仅限IE的技术或类似的技术

由于最终会有人希望其他浏览器工作,我想知道是否存在类似CSS重置样式表的东西,可以帮助其他浏览器的布局更像IE

我正在寻找一个重置样式表,专门用于使Firefox、Chrome等更像IE(我相信没有人会对此留下讨厌的评论),它不会破坏太多现有布局(目前仅在IE7上测试)

我知道我在Javascript等方面还有其他问题,但这个问题只是关于CSS/布局的


简言之,是否存在CSS重置表来将CSS“重置”为IE默认值?

它不是专门为IE设计的,但您可以使用它-它真的不会有太大区别,您真正需要做的是应用它,然后调整您现有的样式,使其在所有浏览器中看起来都一样


html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}
body {
line-height: 1;
color: black;
background: white;
}
ol, ul {
list-style: none;
}
/* tables still need ‘cellspacing=”0″‘ in the markup */
table {
border-collapse: separate;
border-spacing: 0;
}
caption, th, td {
text-align: left;
font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: “”;
}
blockquote, q {
quotes: “” “”;
}

将其放在一个单独的.css文件中,并使用:
@import“reset.css”调用main styles.css文件的顶部

它不是专门为IE设计的,但你可以使用它-它真的不会有多大区别,你真正需要做的是应用它,然后调整你现有的样式,使它在所有浏览器中看起来都一样


html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}
body {
line-height: 1;
color: black;
background: white;
}
ol, ul {
list-style: none;
}
/* tables still need ‘cellspacing=”0″‘ in the markup */
table {
border-collapse: separate;
border-spacing: 0;
}
caption, th, td {
text-align: left;
font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: “”;
}
blockquote, q {
quotes: “” “”;
}

将其放在一个单独的.css文件中,并使用:
@import“reset.css”调用main styles.css文件的顶部

如果你真的想使用CSS重置,我只需要应用一个标准的,然后添加所需的样式,使其看起来与IE中重置之前的样式相同。这样做后,其他浏览器应该更像IE。@thirtydot:我想这是一个非常重要的练习,需要对浏览器的异常情况有相当的了解,我希望有人已经做了!;)这是一个很好的问题,但我真的觉得它属于你,你可以试试谷歌搜索“ie7默认样式表”。@thirtydot我承认。修订的如果你真的想使用CSS重置,我只需要应用一个标准的CSS重置,然后添加所需的样式,使其与IE重置之前的样式相同。完成后,其他浏览器应该更像IE。@thirtydot:我想这是一个非常重要的练习,需要对浏览器的异常情况有相当的了解,我希望有人已经做了!;)这是一个很好的问题,但我真的觉得它属于你,你可以试试谷歌搜索“ie7默认样式表”。@thirtydot我承认。修订的