css - 绝对定位按钮不会出现在固定标题上

标签 css html

我有这个非常简单的固定菜单栏,请参阅 here , 现在菜单底部有这个元素,如下所示:

这是现在所有其他页面上的菜单:

enter image description here

现在在这个特定页面上,出于某种原因我无法显示元素(带有灰色图标的视频图标)。现在,如果我检查开发人员工具,我会发现该元素确实存在:

<a href="#" id="btn-our-story" class="btn-our-story tooltip tooltipstered" data-target="#our-story-vedio"> <img src="http://codeandcode.co/demo/idea_spice/images/res/our-story-btn.png" alt="Our story vedio icon"> </a>

CSS 代码:

header .btn-our-story {
    position: absolute;
    bottom: 0;
    left: 0;
    height: auto;
    width: 100%;
    padding: 50px 0 42px;
    background: #f4f4f4;
    -webkit-transition: background-color .3s;
    -o-transition: background-color .3s;
    transition: background-color .3s;
    text-decoration: none;
}

仍然没有出现视频图标,我看到的是:

enter image description here

为什么没有出现灰色图标?我看不出它不应该出现的明显原因,但它就是没有出现。

最佳答案

您的元素 .tooltip 不透明度为 0。您应该将其更改为 1,如下所示:

header .btn-our-story {
    opacity: 1
}

关于css - 绝对定位按钮不会出现在固定标题上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36409404/

相关文章:

javascript - 我可以同时为两个属性声明相同的值吗

html - 绝对定位并固定在可滚动容器中

c# - 文本框大小不随样式表改变

javascript - 返回时,如何获取之前的输入值

jquery - html中的固定按钮

html - 使用带有 minmax(<fixed-breadth>, 1fr) 的重复自动调整防止 CSS 网格列溢出

html - 使用 CSS,如何使图像作为背景图像跨越页面的整个宽度?

javascript - 多个实例,相同的 ID

javascript - jQuery 代码在 IE 中不起作用

单击时CSS href文本链接跳转到新行