bxslider上z

编程入门 行业动态 更新时间:2024-10-26 04:21:03
本文介绍了bxslider上z-index元素的顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要订购带无子元素的bxslider的内容。

< div> < ul id =slider> < li>< img src =image1.jpg/>< span>文字< / span>< / li> < / ul> < div class =under-text-over-image>< / div> < / div>

有人可以在z-index上提供建议吗?

我现有的CSS类似于:

li img { position:relative; z-index:1; } li span { position:relative; z-index:3; } .under-text-over-image { position:relative; z-index:2; }

感谢

解决方案

这是一个老问题,但问题确实出现了相当多。问题不是z-indexing:

您很可能错过了图片文件 $ b

bx-包装器.bx-prev { left:10px; background:url(images / controls.png)no-repeat 0 -32px; }

快速检查 $ b

.bx-wrapper .bx-controls-direction a { background-color:blue; }

一旦你这样做,你会看到控件。 p>

I need to order the contents of a bxslider with a no-child element. between the image and the text over the top.

e.g

<div> <ul id="slider"> <li><img src="image1.jpg" /><span>text</span></li> </ul> <div class="under-text-over-image"></div> </div>

Could anyone advise on the z-index?

my existing css is similar to:

li img{ position:relative; z-index:1; } li span{ position:relative; z-index:3; } .under-text-over-image{ position:relative; z-index:2; }

Thanks

解决方案

This is an old question but the issue does come up quite a bit it seems. The issue isn't z-indexing:

You're most likely missing the image files

bx-wrapper .bx-prev { left: 10px; background: url(images/controls.png) no-repeat 0 -32px; }

A quick check

.bx-wrapper .bx-controls-direction a { background-color: blue; }

Once you do this you'll see that the controls are there.

更多推荐

bxslider上z

本文发布于:2023-06-11 17:25:52,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:bxslider

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!