源代碼
點擊運行
<!DOCTYPE html> <html> <head> <title>Bootstrap 實例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/css/bootstrap.min.css"> <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script> <script src="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>文本顏色</h2> <p>鼠標移動到鏈接。</p> <a href="#" class="text-muted">柔和的鏈接。</a> <a href="#" class="text-primary">主要鏈接。</a> <a href="#" class="text-success">成功鏈接。</a> <a href="#" class="text-info">信息文本鏈接。</a> <a href="#" class="text-warning">警告鏈接。</a> <a href="#" class="text-danger">危險鏈接。</a> <a href="#" class="text-secondary">副標題鏈接。</a> <a href="#" class="text-dark">深灰色鏈接。</a> <a href="#" class="text-light">淺灰色鏈接。</a> </div> </body> </html>
運行結果