【发布时间】:2021-04-02 14:39:46
【问题描述】:
我一直在为一家小型拖车公司开发一个网站,并构建了一个固定在页面左侧的简单社交链接块。但是,一旦网站上线,链接就无法点击。
一旦鼠标悬停在各个链接上,我似乎无法弄清楚阻止跟随的代码发生了什么。
关于是什么阻止了该功能的任何想法?
链接的 HTML
<div class="social-share">
<div class="si si-facebook">
<a href="https://facebook.com"></a>
</div>
<div class="si si-email">
<a href="mailto:northcounty_towing@yahoo.com" ></a>
</div>
<div class="si si-phone">
<a href="tel:3604031042"></a>
</div>
</div>
以及链接的 CSS
.social-share {
display: flex;
flex-direction: column;
position: fixed;
top: 300px;
left: 0px;
max-height: auto;
max-width: auto;
}
.si-facebook {
display: block;
height: 5vh;
width: 5vh;
background-image: url('../images/facebook-icon.png');
background-size: cover;
margin-top:10px
}
.si-email{
height: 5vh;
width: 5vh;
background-image: url('../images/yahoo.png');
background-size: cover;
margin-top:10px
}
.si-phone{
height: 5vh;
width: 5vh;
background-image: url('../images/phone-icon.png');
background-size: cover;
margin-top:10px
}
【问题讨论】:
-
尝试为这些链接增加
z-index -
尝试为
.social-share类设置z-index:9999。 -
不,仍然不让我点击它们:/