gpt4 book ai didi

html - 图像在 Internet Explorer 9 中显示两次,而在 Firefox 或 Chrome 中显示完美

转载 作者:太空宇宙 更新时间:2023-11-04 15:45:00 25 4
gpt4 key购买 nike

正如标题所说,在 IE 中图像显示两次,但在其他浏览器中显示完美。现在奇怪的是它在我的 5 个页面中有 2 个显示错误。虽然代码对所有人都是相同的。

问题是两个导航部分的 html 代码完全相同,它们从同一个 css 文件中获取图像..

谁能检查出哪里出了问题?

CSS:

a img
{
border:none;
}

body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #7f7e7e;
margin: 0px;
padding: 0px;
background-color: #ffffff
background-image: url(images/#####.pg);
background-repeat: repeat-x

}

#container {
width: 1200px;
margin: auto;
overflow: hidden;
}

#header {
width: 1200px;
height: 130px;
}



#logo {
background-image: url(../images/logo.png);
background-repeat: no-repeat;
width: 425px;
height: 87px;
margin-top: 28px;
margin-left: 128px;
float: left;
}

#logo_des {
background-image: url(../images/logo2.png);
background-repeat: no-repeat;
width: 311px;
height: 57px;
float: right;
margin-top: 57px;
margin-right: 37px;
}




.nav_menu li {
list-style: none;
display: inline;
margin-left: 159px;
line-height: 40px;


}

HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> <title> x</title>

<link href = "styles.css" rel="stylesheet" type="text/css" />


</head>

<body>
<a name="top">
<div id="container"> <!-- BEGIN CONTAINER -->
<div id="header"> <!--BEGIN HEADER -->
<div id="logo"><!-- BEGIN LOGO -->
</div><!-- END LOGO -->

<div id="logo_des"> <!-- BEGIN LOGO DESCRIPTION -->
</div> <!--END LOGO DESCRIPTION -->

</div> <!--END HEADER-->

<div id="navigation_line"> <!-- BEGIN NAVIGATION_LINE -->
<div id="menu"> <!--BEGIN MENU-->

<ul class="nav_menu">
<li><a href="index.html">Home</a></li>
<li><a href="about_x.html">About x</a></li>
<li><a href="our_services.html">Our Services</a></li>
<li><a href="contact_us.html">Contact Us</a></li>
<li><a href="partners.html">Partners</a></li>
</ul>
</div> <!-- END NAVIGATION_LINE -->
</div> <!--END MENU--> `

最佳答案

愚蠢的我,我忘了把它通过验证器。修正了一些错误,现在完成了。

抱歉浪费您的时间。

关于html - 图像在 Internet Explorer 9 中显示两次,而在 Firefox 或 Chrome 中显示完美,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11826022/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com