Bootstrap 中用于复选框的容器\n
在网页中使用 Bootstrap 的 .checkbox 类添加复选框
您可以尝试运行以下代码设置复选框容器 −
示例
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "container"> <h2>Programming Survey</h2> <p>Which programming languages do you like?</p> <form> <div class = "checkbox"> <label><input type = "checkbox" value = " ">Java</label> </div> <div class = "checkbox"> <label><input type = "checkbox" value="">C++</label> </div> <div class = "checkbox"> <label><input type = "checkbox" value="">C</label> </div> </form> </div> </body> </html>
广告