如何浮顶吧?

Rol*_*ndo 4 html css scroll

我想找到一个drupal主题,其中有一个像Twitter的顶级酒吧http://dev.twitter.com那样的酒吧.如果没有,我如何在Drupal 7中复制相似的效果?

Chr*_*ann 14

虽然我不知道任何Drupal主题,但我知道如何重新创建效果 - 将元素固定到视口的顶部,使用CSS position: fixed:

#topbar {
    position: fixed;
    top: 0
}
Run Code Online (Sandbox Code Playgroud)

您可能还希望在内容的其余部分上加上一个上边距,这样就不会掩盖它.