2. Create a floating menu list: use HTML and elements to create an unordered list, add menu items that need to be displayed, use CSS style to hide the list, use JavaScript to control the display and hiding of the menu, add JavaScript event listeners, and switch the visibility state of the menu when the button is clicked.