gpt4 book ai didi

jquery - 定位 slidejs 标题

转载 作者:行者123 更新时间:2023-11-28 14:18:39 44 4
gpt4 key购买 nike

我正在使用 slidejs并试图弄清楚如何将 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;
}
  1. 有谁知道如何将标题放在页面的其他位置?

  2. 我找到的最接近的提示是 here .但我是一个 javascript 和 css 初学者,我真的不明白。有人可以解释一下他们在说什么吗?

最佳答案

修改.captionleftbottom属性:

.caption {
z-index:500;
position:absolute; /* remove this and caption dissapears. why? where does it go? */

left:-39px; /* horizontal positioning relative to the parent nearest
explicitly positioned elements left border */
bottom:-10px; /* vertical positioning relative to the parent nearest
explicitly positioned element bottom border */

font-size: 1.1em;
width:440px;
text-shadow:none;
}

同时删除多余的left定义...

关于jquery - 定位 slidejs 标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8783750/

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