How to make the absolute child width independent from the relative parent width?

前端 未结 2 1798
说谎
说谎 2021-01-13 03:00

I need to realize this menu with its submenu:

I set the main menu to be a ul/li with li float: left; display: b

2条回答
  •  春和景丽
    2021-01-13 03:42

    Just delete the position:relative; of #main_menu li

    http://jsfiddle.net/STfGL/4/

提交回复
热议问题