0

こんにちは、私のテーマの左側に貼られたブロック領域に問題があります。このコードの #content は、サイドバーの最初に固定されたブロックの左側に滑り落ちます。

    <body class="html not-front logged-in two-sidebars page-node page-node- page-node-616 node-type-group og-context og-context-node og-context-node-616">
<div id="navbar" class="navbar navbar-medium navbar-inverse navbar-fixed-top">
<div id="main">
<div class="container">
<div class="row-toggle row-fluid">
<aside id="sidebar-first" class="sidebar span2 hidden-phone">
<div class="region region-sidebar-first">
<div class="region region-sidebar-first-affix affix" style="width: 145px;">
</aside>
<div id="containerr">
<section id="content" class="span6">
<div class="region region-content">
</section>
<aside id="sidebar-second" class="sidebar span4 hidden-phone">
</div>
</div>
</div>
<footer id="footer" class="container-wrapper">
<div id="sb-container">
</body>

すべてに影響すると思うCSSは-

#sidebar-first > .region {
    background: none repeat scroll 0 0 #0A0A0A;
    margin-right: 10px;
    padding: 10px 15px;
}

.region-sidebar-first-affix.affix {
    top: 20px;
}
.region-sidebar-first-affix.affix {
    top: 55px !important;
}

.affix {
    position: fixed;
}

すぐにこのドメインを削除するので、スパム リンクでない場合は、このページのコードを表示できます

私のCSSとHtmlの知識が少し足りないように見えるので、すべてのポインタは大歓迎です。

ありがとう

4

1 に答える 1

0

コードのスニペットにはいくつかの終了タグが欠落しており、ページの問題を実際に示していません。

section#content の css を変更することで、ページの表示を修正することができました。

css は次のように記述できます。

section#content { margin-left:19.5%; 幅: 54% }

于 2013-10-24T01:06:45.007 に答える