Home >Web Front-end >HTML Tutorial >How to display a div when clicked without affecting the layout of other nearby divs? _html/css_WEB-ITnose
I want to achieve this. Put the mouse on the avatar and then a div user information will be displayed. However, when I do it myself, displaying the div will affect the layout of other surrounding divs. Can anyone tell me what is good? method?
Use position to position a div, and then use js to show the positioned div when the mouse passes over it ()
Use position to position a div, and then use js to show the positioned div when the mouse passes by ()
Use positioning to position a div, and then use js to show () the positioned div when the mouse passes by.
Use position to position a div, and then use js to show the positioned div when the mouse passes over it ()