Bootstrap,补充工具栏没有响应

时间:2013-08-22 10:53:23

标签: javascript jquery html css twitter-bootstrap

我为我的项目使用twitter bootstrap,我将侧边栏放在右侧,但是当我改变分辨率时,它不会像其他分辨率一样。这里和附加两个屏幕截图分辨率1024和1366都与768(1024 x 768和1366 x 768)。我也复制了我的css代码。 (主要代码非常复杂,所以我无法将其放在jsfiddle上)

    .div.panel
{
    display: none;
    z-index: 3;
    top: 201px;
    right: 9%;
    height: auto;
}
.catlogsidepanel 
{
    width: 300px;
    float: right;
    background: url(../images/bg_sidepannel.png) repeat-y;
    position: absolute;
    margin: 0px 0px 0px 400px;
}

我使用右:9%设置右侧位置。

1024 x 768

enter image description here

1366 * 768(这是正确的,我想要1024分辨率)

enter image description here

1 个答案:

答案 0 :(得分:0)

您在catlogsidepanel中缺少类或ID标识符。它应该是.catlogsidepanel#catlogsidepanel