汉堡包菜单按钮显示我的复选框

Hamburger menu button shows me checkbox

我正在研究this中给出的例子。但是我看不到 hamburger 按钮。我只看到 checkbox,它的功能与我预期的一样 hamburger

问题:

  1. 如何用汉堡包按钮替换复选框?
  2. 我试过 hidden-md hidden-lgvisible-xs。但是汉堡包按钮不会隐藏。我哪里错了?

我的存储库:
module3
https://github.com/elcolie/ychaikin-assignment

您示例中的图标是 Bootstrap 中的图标,但它是 Bootstrap 3,现在如果您使用的是 Bootstrap 4,则没有此功能。 如果你想使用它,请使用 FontAwesome https://fontawesome.com/