What was the thinking behind the implementation of the dropdown menu in Twitter Bootstrap?

前端 未结 4 871
半阙折子戏
半阙折子戏 2021-02-03 21:17

I\'ve been looking at Twitter\'s Bootstrap framework and I\'m really impressed. However, I don\'t understand the thinking behind the way the dropdown navigation menu works.

4条回答
  •  粉色の甜心
    2021-02-03 22:07

    There are many CSS and js hacks out there for this functionality, but all of them is breaking something.

    I am against using hover, but if someone really needs that, then do it properly. I made a plugin which is using only the Bootstrap javascript API without any hack, so it works on all devices, without braking the usability:

    https://github.com/istvan-ujjmeszaros/bootstrap-dropdown-hover

提交回复
热议问题