gpt4 book ai didi

jquery - CSS - 重新定位元素

转载 作者:太空宇宙 更新时间:2023-11-04 05:19:40 25 4
gpt4 key购买 nike

我想将“分页”区域移动到 slider 图像上方。

这很容易实现吗?

目前它们位于 slider 图像下方:http://slidesjs.com/examples/standard/

我该怎么做?

这里是使用的 CSS 代码:

/*
Slideshow
*/

#slides {
position:absolute;
top:15px;
left:4px;
z-index:100;
}

/*
Slides container
Important:
Set the width of your slides container
Set to display none, prevents content flash
*/

.slides_container {
width:570px;
height:270px;
overflow:hidden;
position:relative;
display:none;
}

/*
Each slide
Important:
Set the width of your slides
If height not specified height will be set by the slide content
Set to display block
*/

.slides_container a {
width:570px;
height:270px;
display:block;
}

/*
Next/prev buttons
*/

#slides .next,#slides .prev {
position:absolute;
top:107px;
left:-39px;
width:24px;
height:43px;
display:block;
z-index:101;
}

#slides .next {
left:585px;
}

/*
Pagination
*/

.pagination {
margin:26px auto 0;
width:100px;
}

.pagination li {
float:left;
margin:0 1px;
list-style:none;
}

.pagination li a {
display:block;
width:12px;
height:0;
padding-top:12px;
background-image:url(../img/pagination.png);
background-position:0 0;
float:left;
overflow:hidden;
}

.pagination li.current a {
background-position:0 -12px;
}

非常感谢任何指点。

最佳答案

添加这个 css 类,它将为您工作

.pagination
{
position:relative;
top:-332px;
}

关于jquery - CSS - 重新定位元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6965229/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com