Hier habe ich zwei lange div
s. Die erste div
ist fest, und ich möchte alle Elemente div.content
, wenn der Benutzer scrollt zeigen, (weil ich voll Elemente auf ersten div
. Wie kann ich das tun?Zeige vollen Inhalt wenn div ist behoben
<div style="display: block; width: 100%;">
<div style="float: left; position: relative; z-index: 0;">
<div style="position: relative;">
<div class="content" style="padding-top: 10px; top: 10px; position: fixed;">
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
<div style="margin-top: 10px;">MENU</div>
Show element after user scrolls
</div>
</div>
</div>
<div style="float: left; margin-left: 11%; width: 67%;">
Right DIV FUll LONG TEXT
</div>
</div>
Es löscht nicht, was Sie wollen. Sie haben die mich gerichtet Nu-Gruppe und lange Inhalte div wie das: https://jsfiddle.net/zaaafd3k/. Wenn Sie scrollen, ist die Menügruppe fest und das lange Inhalts-Div wird gescrollt. Was für ein Verhalten willst du? – hsrv
@hsrv ich habe volle Elemente (Menü) und mein Div nicht alle Elemente zeigen, wenn ich scroll, ich möchte nur alle zeigen, wenn ich scrollt – EdrinBasha
Keine klare Problemstellung oder Beispiel! –