IE破坏了我的网站设计

时间:2012-12-10 07:59:12

标签: css internet-explorer google-chrome firefox

我的wordpress主题看起来在chrome,Firefox和Opera(截至2012年12月的最新版本)中是正确的

当我在IE 9中查看它时,即使打开兼容性视图,也看起来不对。

带有菜单的蓝色条看起来太粗

这是链接。 http://www.kyaniworld.biz/products/sunrise/

1 个答案:

答案 0 :(得分:2)

答案很简单!您可以通过仅创建css定位IE来找到解决方案。所以这是一个有用的link。您不必担心为用户添加的下载数据。针对IE的css文件仅在从IE浏览器打开网站时下载。希望我帮忙!

PS:A headUp:您应该在所有IE版本中验证您的网站(我下载到IE 7)。每个版本都有自己的错误和问题。

[编辑]刚刚遇到这个。我所有问题的答案:'css'重置:

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,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
width: auto;
height: auto;
margin: 0;
padding: 0;
border: 0;
outline: 0;
background: transparent;
}