我在第二个div课上遇到了一些麻烦,欢迎,当它没有做任何事情时,显示为重叠或未闭合。关于如何修复它的任何想法?
<body>
<header>
<div class="nav">
<!--This is the main navigation bar code-->
<ul>
<li class="Home"><a href="#">Home</a></li>
<li class="DesignBrief"><a class="#" href="#">Design Brief</a></li>
<li class="Information"><a href="#">Information</a></li>
<li class="About"><a href="#">About</a></li>
<li class="News"><a href="#">News</a></li>
</ul>
</div>
</header>
<div class="welcome">
<div style="height: 500px">
</div>
</body>
</html>
答案 0 :(得分:0)
您错过了结束</div>
标记。
您的最终代码应如下所示:
<body>
<header>
<div class="nav">
<!--This is the main navigation bar code-->
<ul>
<li class="Home"><a href="#">Home</a></li>
<li class="DesignBrief"><a class="#" href="#">Design Brief</a></li>
<li class="Information"><a href="#">Information</a></li>
<li class="About"><a href="#">About</a></li>
<li class="News"><a href="#">News</a></li>
</ul>
</div>
</header>
<div class="welcome">
<div style="height: 500px">
</div>
</div>
</body>
</html>