【问题标题】:Content overlaps my header in Joomla! 3.4.5内容与我在 Joomla 中的标题重叠! 3.4.5
【发布时间】:2016-03-10 19:50:33
【问题描述】:

我正在使用 Joomla!使用 Artisteer 生成的模板。我想把我的标题放在一个固定的位置,这样当我滚动时,标题会保持在它的位置,我知道该怎么做。但是,当我的标题固定并滚动时,我的网站内容与我的标题重叠,这对我来说没有任何意义。有人可以帮我吗?

 .art-header
{
  margin: 0 auto;
  height: 80px;
  background-image: url('../images/header.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  position: fixed;
  z-index: auto !important;
}

【问题讨论】:

  • 只需将其添加到您的问题中,选择它并按代码 {} 格式化选项
  • 我现在已经包含了代码。你能帮我吗...谢谢
  • 我不喜欢 joomla。但我给了你我的投票,也许 Joomla XP 的其他人可以帮助你。

标签: php css templates joomla header


【解决方案1】:

可能您必须将标题 z-index 更改为顶部画布上的值为 9999 和 div/section 内容的 z-index 为 1。

.art-header
{
  margin: 0 auto;
  height: 80px;
  background-image: url('../images/header.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  position: fixed;
  z-index: 9999 !important;
}

【讨论】:

  • 感谢 Asep... 解决了我的问题!
猜你喜欢
  • 2015-10-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多