定位幻灯片标题
我正在使用 slidejs 并尝试找出如何将幻灯片标题放置在图像下方。我不知道该怎么做。我对 css 文件处于试错模式,但没有成功。下面是我的CSS。
/*
Caption
*/
.caption {
z-index:500;
position:absolute; /* remove this and caption dissapears. why? where does it go? */
left:-39px;
bottom:-10px;
font-size: 1.1em;
left:0;
width:440px;
text-shadow:none;
}
.caption p {
bottom:20px;
z-index:500;
margin-bottom: 3px;
margin-top: 0px;
}
有人知道如何将标题放置在页面上的其他位置吗?
我发现的最接近的提示是
I am using slidejs and trying to figure out how to position the slidejs caption below the image. I can't figure out how to do this. I'm in trial-and-error mode with the css file with no luck. below is my css.
/*
Caption
*/
.caption {
z-index:500;
position:absolute; /* remove this and caption dissapears. why? where does it go? */
left:-39px;
bottom:-10px;
font-size: 1.1em;
left:0;
width:440px;
text-shadow:none;
}
.caption p {
bottom:20px;
z-index:500;
margin-bottom: 3px;
margin-top: 0px;
}
Does anyone know how to do position the caption somewhere else on the page?
The closest hint I found is here. But I'm a javascript and css beginner and I really don't get it. Can someone explain what they are saying?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
修改
.caption
的left
和bottom
属性:Also 删除多余的 <代码>左定义...
Modify the
left
andbottom
properties of.caption
:Also remove the extra
left
definition...