【问题标题】:After adding a snippet of code a (previously working) anchor stopped working when hover添加一段代码后,(以前工作的)锚在悬停时停止工作
【发布时间】:2018-07-20 00:56:08
【问题描述】:

我开始从引导模板构建一个项目。然后我将 bootply 中的一段 sn-p 代码添加到服务部分。由于某种原因,第一部分中的按钮(锚点)不再起作用。

然而,我复制到新部分的同一个锚点工作正常!


网站链接:https://bomengeduld.github.io/debadkamers/

index.html 链接:https://github.com/bomengeduld/debadkamers/blob/master/index.html

style.css 链接:https://github.com/bomengeduld/debadkamers/blob/master/style.css

index.html

<a href="#" class="button white">OFFERTE</a>

style.css

input:focus,
button:focus,
a:focus,
a:hover {
    text-decoration: none;
    outline: none;
    color: #000000;
}

.button.white,
.button:hover {
    background-color: #ffffff;
    color: #000;
}

【问题讨论】:

    标签: twitter-bootstrap github jekyll anchor


    【解决方案1】:

    请将此代码添加到我们的 css 中。

    .header-area .v-center{
      position: relative;
      z-index: 999;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-16
      • 2012-12-09
      • 2013-11-19
      • 1970-01-01
      • 1970-01-01
      • 2010-11-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多