Bootstrap 類 panel-info 用法
在 Bootstrap 中的 panel-info 類是一種上下文狀態類,用於形成對特定上下文更有意義的面板。它將資訊新增到面板中,並顯示為藍色。
你可以嘗試執行以下程式碼來實現 panel-info 類 −
示例
<!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 style = "background: orange;"> <div class = "panel panel-info"> <div class = "panel-heading"> <h3 class = "panel-title">Panel Title</h3> </div> <div class = "panel-body"> This is a demo panel. </div> </div> </body> </html>
Advertisement