使用 Bootstrap 使元素不可见
要使用 Bootstrap 使元素不可见,请使用 invisible 类。
你可以尝试运行以下代码来隐藏元素 −
示例
<!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>Cricket Boards</h2> <p>The <abbr title = "International Cricket Council">ICC</abbr> governs cricket boards.</p> <p class = "invisible">BCCI is also governed by ICC. (This element is invisible)</p> </div> </body> </html>
广告