gpt4 book ai didi

html - div 关闭问题,它的 href 溢出到其他内容

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

我有一个我正在制作的网站,我的导航栏中有一个似乎溢出的 div。如果我将鼠标悬停在页眉和页脚以外的任何地方,就好像我悬停在链接上一样。似乎看不出问题是什么。它似乎来 self 的登录按钮,因为这是将鼠标悬停在内容上时显示的 href,但我已经查看了我的代码,看不到未关闭的 div。真的很感谢这方面的帮助,这让我很头疼。

这是我的 Fiddle图片是代替我的图片的占位符,但大小大致相同。

<body>
<div class="page-wrap">

<header class="topbar topbar-grey">
<div class="topbar-left">
<div class="topbar-logo">
<a href="/">
<img class="mysite-logo" src="http://lorempixel.com/output/cats-q-c-128-128-6.jpg" alt="Mysite Logo" />


</a>

</div>
</div>
<nav class="topbar-nav">
<ul class="topbar-nav-main">
<li id="home-nav"><a href="index.html">Home</a></li>
<li id="about-nav"><a href="about.html">About</a></li>
<li id="contact-nav"><a href="contact.html">Contact</a></li>
<li id="gallery-nav"><a href="gallery.html">Gallery</a></li>
<li id="comissions-nav"><a href="comissions.html">Comissions</a></li>
</ul>
<div class="topbar-right">
<div class="hamburger"><img src="http://lorempixel.com/output/food-q-c-48-48-1.jpg"></div>
<div class="hamburger3"><img src="http://lorempixel.com/output/food-q-c-48-48-1.jpg"></div>
<div class="hamburger2"><a href="login.html">Login</div>
</div>
</nav>

</header>

<div class="contentstuff">

<div class="col col1">
<div class="box1">
<div id="box-image">

</div>
</div>
<div class="box3">
<div id="box-image2">

</div>
</div>
</div>

<div class="col col2">
<div class="box2">

<div id="slideshow-wrap">
<input type="radio" id="button-1" name="controls" checked="checked"/>
<label for="button-1"></label>
<input type="radio" id="button-2" name="controls"/>
<label for="button-2"></label>
<input type="radio" id="button-3" name="controls"/>
<label for="button-3"></label>
<input type="radio" id="button-4" name="controls"/>
<label for="button-4"></label>
<input type="radio" id="button-5" name="controls"/>
<label for="button-5"></label>
<input type="radio" id="button-6" name="controls"/>
<label for="button-6"></label>
<input type="radio" id="button-7" name="controls"/>
<label for="button-7"></label>
<input type="radio" id="button-8" name="controls"/>
<label for="button-8"></label>
<input type="radio" id="button-9" name="controls"/>
<label for="button-9"></label>
<input type="radio" id="button-10" name="controls"/>
<label for="button-10"></label>

<div id="slideshow-inner">
<ul>
<li id="slide1">
<img src="http://lorempixel.com/output/animals-q-c-550-550-10.jpg" />

</li>
<li id="slide2">

</li>
<li id="slide3">
<img src="http://lorempixel.com/output/animals-q-c-550-550-10.jpg" />

</li>
<li id="slide4">
<img src="http://lorempixel.com/output/animals-q-c-550-550-10.jpg" />

</li>
<li id="slide5">
<img src="http://lorempixel.com/output/animals-q-c-550-550-10.jpg" />

</li>
<li id="slide6">
<img src="http://lorempixel.com/output/animals-q-c-550-550-10.jpg" />

</li>
<li id="slide7">

</li>
<li id="slide8">
<img src="http://lorempixel.com/output/animals-q-c-550-550-10.jpg" />

</li>
<li id="slide9">
<img src="http://lorempixel.com/output/animals-q-c-550-550-10.jpg" />

</li>
<li id="slide10">
<img src="http://lorempixel.com/output/animals-q-c-550-550-10.jpg" />

</li>
</ul>
</div>
</div>


</div>
<div class="box4">
<div id="box-image3">

</div>
</div>
</div>


</div>

<footer class="site-footer">


<div class="row-1">
<div class="logofooter">
<a class="logofooter" href="index.html"> <img src="http://lorempixel.com/output/cats-q-c-128-128-6.jpg"></a>
<div class="brand">
<a href="index.html"> MySiteLogo</a>
</div>
</div>
<ul class="legal">
<li><a href="privacy.html">Privacy Policy</a></li>
<li><a href="legal.html">Legal</a></li>
<li><a href="disclaimer.html">Disclaimer</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>

<div class="social">

<ul class="socicons">
<li><a class="facebook" href="https://www.facebook.com"> <img src="http://lorempixel.com/output/abstract-q-c-64-64-10.jpg"></a></li>
<li><a class="twitter" href="https://www.twitter.com"><img src="http://lorempixel.com/output/abstract-q-c-64-64-10.jpg"> </a></li>
<li><a class="instagram" href="https://www.instagram.com"><img src="http://lorempixel.com/output/abstract-q-c-64-64-10.jpg"> </a></li>
</ul>
</div>
</div>
</div>

</footer>
</body>

</html>

最佳答案

您忘记关闭 <a>标签:

<div class="hamburger2"><a href="login.html">Login</div>

关于html - div 关闭问题,它的 href 溢出到其他内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32739111/

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