gpt4 book ai didi

css - div 在 IE 中出现两次

转载 作者:太空宇宙 更新时间:2023-11-04 05:20:16 24 4
gpt4 key购买 nike

我几乎完成了一个网站,但由于某种原因,它在 IE 中显示不理想。 div“内容”(带有顶部边框)出现两次 - 一次包含内容,居中,然后再次位于导航下方,但与左侧对齐且其中没有内容。它在 Safari 和 Firefox 中显示良好。

这是CSS代码: #内容{

#content {
position:relative;
top: 50px;
width:900px;
height:580px;
border-top-color:#000000;
border-top-style: solid;
border-top-width:1px;
}

这是网站的链接:http://www.thomas-collection.eu/home.html

谢谢!

最佳答案

验证您的 HTML 将解决问题(您有一个打开的 DIV 等。)

http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.thomas-collection.eu%2Fhome.html

关于css - div 在 IE 中出现两次,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6778194/

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