0

我正在使用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 初学者,我真的不明白。有人可以解释他们在说什么吗?

4

1 回答 1

0

修改 的leftbottom属性.caption

.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定义...

于 2012-01-09T04:00:47.783 回答