current position:Home>The influence on the fixed positioning element of the inner layer when the outer element has a fixed height and overflows and rolls

The influence on the fixed positioning element of the inner layer when the outer element has a fixed height and overflows and rolls

2022-05-15 02:12:46Maple moving forward

The outer element is fixed in height and overflows , When the cursor is suspended in its inner layer fixed When positioning elements to scroll content , Content cannot be scrolled , It will lead to poor user experience .
 Insert picture description here
resolvent : Cancel the of outer elements overflow Set up . If the outer element must be set height and overflow( That is, you don't want to move the outer elements ), Then you can put fixed The positioning element is written without setting height and overflow Under the elements of , Such as body Outermost child element of .

copyright notice
author[Maple moving forward],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/132/202205120524480889.html

Random recommended