投稿の情報(投稿日、ノート数、パーマリンクなど)を含むレイアウトの上部にdivを修正しようとしています過去の投稿を下にスクロールするときのこの情報私はそれがjavascriptの任意の種類またはcssを使用していくつかの複雑な位置付けを必要とするかどうかはわかりません。投稿をレイアウトする方法は次のとおりです。投稿ごとに特定の投稿情報を取得して、投稿をスクロールして固定ディビジョン内で変更するにはどうすればよいですか?固定divの内容が他のdivと同じように変更されます
#container {
width: 960px;
margin: 0px auto;
}
#changingpostinformation {
position: fixed;
margin: 0px auto;
}
<div id="container">
<div id="changingpostinformation">fixed post information div that's information changes as each post below reaches the top of #container</div>
<div class="post">
<h3>Post Title>
<p>This is the body of this example post.</p>
</div>
<div class="post">
<h3>Post Title>
<p>This is the body of this example post.</p>
</div>
</div>
変更情報セクションは、現在、すべての投稿の投稿情報を保持しています。それは、現在の投稿に基づいて適切な情報を表示することです。 – Ryan
私のコードは 'put_postinfo_in_fixed_div'を呼び出し、最初の可視投稿divを(jqueryオブジェクトとして)渡します。必要な機能を実行するには、この関数を実装する必要があります。 – ori