复选框现在可见,如果放在`nav`元素后面

时间:2017-11-29 20:14:52

标签: html bootstrap-4

在以下代码中,如果我将checkbox放在nav之后,我就看不到<body> <!-- If I remove nav completely, I see the checkbox, else I do not --> <nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top"> <a class="navbar-brand" href="#">Navbar </a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> </nav> <input type="checkbox" id="ossm" name="ossm"> <label for="ossm">CSS is Awesome</label> <script src="bower_components/jquery/dist/jquery.min.js"></script> <script src="bower_components/popper.js/dist/umd/popper.min.js"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> </body> 。为什么呢?

features/
features/rsyslog/
features/rsyslog/rsyslog_inputs_controller.rb
features/rsyslog/rsyslog_outputs_controller.rb
features/rsyslog/rsyslog_rules_controller.rb

0 个答案:

没有答案