gpt4 book ai didi

jquery - 中心 3 div 制作幻灯片

转载 作者:太空宇宙 更新时间:2023-11-04 00:02:56 24 4
gpt4 key购买 nike

我正在使用 twitter bootstrap,我想制作几张图片的幻灯片:

我已经设法使用以下代码在模态 div 中显示我需要的图像:

<div id="imgContainer" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: block;">
<div id="stanga" style="height:100%;">
<img src="./img/stanga.png" style="padding-top:50%;position:absolute;">
</div>
<div id="pozica">
<img src="./lucrari/BRD1.png">
</div>
<div id="dreapta" style="float:right;">
<img src="./img/dreapta.png">
</div>
</div>

我得到的结果是这样的:

bad divs

我怎样才能达到这样的效果?我的意思是将主照片和左右按钮居中?

enter image description here

最佳答案

prevnext 箭头上使用绝对位置应该可以解决问题

here is an example

CSS:

#stanga img{
margin : 30px;
}

#pozica,#dreapta{
position: absolute;
top: 110px
}

#dreapta{
right: 5px;
}
#pozica{
left: 5px;
}

关于jquery - 中心 3 div 制作幻灯片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15861736/

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