首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在滑块css中正确设置z索引

在滑块css中正确设置z索引
EN

Stack Overflow用户
提问于 2015-08-03 23:46:22
回答 1查看 49关注 0票数 0

我的滑块的链接,只是第一个工作,其余的覆盖。

我有三个链接,但只有一个有效。

我认为这是z-index的一个问题。但是我不能让它起作用。

CSS详细信息遵循代码页上的链接。

代码语言:javascript
复制
<div class="gallery autoplay items-3" style="position: absolute; top: 110px;">

    <figure class="item">
   <img src="http://comercialbv.com.br/slide/image/banner-kit-utilidades.jpg" alt="Olha só o presente que você vai dar no Dia dos Pais!"  usemap="#kitchurrasco" id="kitchurrasco">
    </figure>

    <figure class="item">
<img src="http://comercialbv.com.br/slide/image/banner-rechauds.jpg" alt="Rechaud Banho Maria GN 1/2 65mm - F433-02" usemap="#rechaud" id="rechaud">
    </figure>

    <figure class="item">
<img src="http://comercialbv.com.br/slide/image/banner-refrigerador.jpg" alt="Promoção Exclusiva! Refrigerador Expositor 360 Litros LG-360" usemap="#refrigerator" id="refrigerator">

<map name="kitchurrasco" id="kitchurrasco">
<area  alt="Kit p/ Churrasco Aço Inox - Mundial" href="http://yahoo.com" shape="rect" coords="0,0,847,300" style="outline:none;" target="_self"     />
<area shape="rect" coords="845,298,847,300" alt="Kit p/ Churrasco Aço Inox - Mundial" style="outline:none;" title="Kit p/ Churrasco Aço Inox - Mundial" href="http://yahoo.com" />
</map>   

<map name="rechaud" id="rechaud">
<area  alt="Rechaud Banho Maria Aço Inox GN 1/2 65mm 9 Litros" title="Rechaud Banho Maria Aço Inox GN 1/2 65mm 9 Litros" href="http://www.google.com" shape="rect" coords="0,0,847,300" style="outline:none;" target="_self"     />
<area shape="rect" coords="845,298,847,300" alt="Rechaud Banho Maria Aço Inox GN 1/2 65mm 9 Litros" style="outline:none;" title="Rechaud Banho Maria Aço Inox GN 1/2 65mm 9 Litros" href="http://www.google.com" />
</map>


<map name="refrigerator" id="refrigerator">
<area  alt="Promoção Exclusiva! Refrigerador Expositor 360 Litros LG-360" href="http://www.bing.com" shape="rect" coords="0,0,847,300" style="outline:none;" target="_self"     />
<area shape="rect" coords="845,298,847,300" alt="Promoção Exclusiva! Refrigerador Expositor 360 Litros LG-360" style="outline:none;" title="Promoção Exclusiva! Refrigerador Expositor 360 Litros LG-360" href="http:/www.bing.com" />
</map>
      </div>

http://codepen.io/anon/pen/QbzopM

EN

回答 1

Stack Overflow用户

发布于 2015-08-04 01:33:19

是的,只要确保100%的z指数是1-

代码语言:javascript
复制
@keyframes controlAnimation-2 {
    0% {
        color: #ccc;
        color: rgba(255, 255, 255, 0.4);
        z-index: 7;
    }

    14.3%,
    50% {
        color: white;
        color: rgba(255, 255, 255, 0.8);
        z-index: 7;
    }

    64.3%,
    100% {
        color: #ccc;
        color: rgba(255, 255, 255, 0.4);
        z-index: 1;
    }
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31798513

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档