在基于960网格的主题中修复标题

时间:2014-07-14 13:32:19

标签: html css

我正试图以这种方式修复标题

.container_24 header-container{
position:fixed;
}

这修复了标题,但是它下方的主要容器块现在与顶部对齐。 我尝试的可能解决方案是给内容块一个上限。唉。主题以这种方式指定主要的contnet div

.container_24 em-main{
/* css code */
    }

你必须得到我的观点,因为给它一个余地是随着标题向下推。我怀疑container_24是我的问题。 它是一个magento 960网格主题,我不能承担在核心中添加一些主要内容的额外包装的风险。 寻求一些帮助来实现这一目标 嘿..这里是链接[Link Removed]如果你想检查wid chrome dev工具..或者firebug
感谢

1 个答案:

答案 0 :(得分:1)

试试这个:

.em-header {
    background: url(../images/digital_blue/bkg-header.png) 0 0 repeat #b50728;
    position: fixed;
    width: 100%;
    display: block;
    z-index: 9999;
}

.em-main {
    top: 122px;
    position: relative;
}

那应该做你想要的。我在devtools中进行了测试,效果很好