在Bootstrap中使用.hidden类来强制隐藏元素
<!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> <p class = "show">This is visible.</p> <p class = "hidden">This is hidden.</p> </body> </html>