current position:Home>HTML page. Don't want the navigation box to move with the page size.

HTML page. Don't want the navigation box to move with the page size.

2022-02-02 20:13:18 CSDN Q & A

I just want the navigation box to always be directly below the previous box .. Which God can help me ...




Refer to the answer 1:

Use the positioning




Refer to the answer 2:



Refer to the answer 3:

Use position: fixed; It can be located somewhere in the visual area
Use position: absolute;top: 0; Parent position: relative;
When the positioning is blocked, you can use z-index To display priority




Refer to the answer 4:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022013164627.html

Random recommended