Bootstrap alert-link 類
在 Bootstrap 中使用 alert-link 類以獲取 Bootstrap 中的連結內容。
為此,您可以嘗試執行下面的程式碼:
示例
<!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 = "alert alert-danger"> <a href = "#" class = "alert-link">Error!</a> </div> </body> </html>
廣告