【发布时间】:2013-09-25 10:43:06
【问题描述】:
我想用 nivo 滑块在图片的左侧显示不同的文本,让它像图片一样滑动。我尝试了不同的解决方案,但我无法将文本移到图片之外,因为当我向左侧添加负值时,我的标题消失了——它只是在图片上可见。所以问题是如何在图像之外设置标题的位置 - 这不是图像的一部分?我怎样才能做到这一点?也许 nivo 滑块不适合这个?
-----------------------------------------
| |
| image |
------------- | |
| caption | | |
-------------- -----------------------------------------
感谢您的回答。 到目前为止,我有这个: HTML
<div id="feature-text-01" class="nivo-html-caption">
<p><h2>Title 1</h2></p>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr.</p>
</div>
<div id="feature-text-02" class="nivo-html-caption">
<p><h2>Title 2</h2></p>
<p>sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat.</p>
</div>
<div id="feature-text-03" class="nivo-html-caption">
<p><h2>Title 3</h2></p>
<p>At vero eos et accusam et justo duo dolores et ea rebum.</p>
</div>
<div id="feature-text-04" class="nivo-html-caption">
<p><h2>Title 4</h2></p>
<p>At vero eos et accusam et justo duo dolores et ea rebum.</p>
</div>
CSS
.nivo-caption {
width: 200px;
height: 250px;
left: -200px; /* same as the width */
}
【问题讨论】:
-
你能提供我使用它的链接吗
-
您好,您可以在这里找到页面link。我想要左边的标题,现在是其他文本。最终目标是一起实现幻灯片文本和图片,并在底部有项目符号导航。如果您知道任何其他解决方案,我将不胜感激。谢谢!
-
你的标题被剪掉了,你想修复它吗
-
图片中的标题
-
是的,我想像上面画的那样解决这个问题。我希望标题位于现在左侧文本不在图片上方而是在图片外部的位置。
标签: jquery html css nivo-slider