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.
一部のナビゲーション ボタンがブラウザ ウィンドウの端に貼り付いている状況を作成しようとしています。いくつかの CSS と JavaScript を想定しています。コーディングを行ってから長い時間が経ちました。正しい方向。
http://www.flickr.com/photos/66009984@N00/6824355131/
ページと一緒にスクロールするかどうかに応じて、ボタンの位置を絶対または静的にします。
.buttonLeft { position: absolute; left: 0 } .buttonRight { position: absolute; right: 0 }
それらを別の div 内に配置する場合は、その親 div の位置を相対的に設定する必要があります。
.parentContainer { position: relative }