Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<h3>6 つのヘッダーといくつかの<div>サブ要素を持つ jQuery アコーディオンを使用しています。すべてのセクションを開いてから再度閉じると。アコーディオンは、ページの約 100 ピクセル下になります。
<h3>
<div>
<h3>アコーディオンが常に同じ場所で閉じられるように、最初のものを固定する方法はありますか?
これが私がそれを修正した方法です。'top' および 'left' パラメータは、私のページに固有のアコーディオンの位置を示します。
#accordion:first-child { position: absolute; top:51px; left:8px; }