温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

如何制作bootstrap警示框的链接

发布时间:2021-11-26 09:31:19 来源:亿速云 阅读:143 作者:柒染 栏目:开发技术

如何制作bootstrap警示框的链接,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。

1.运行效果如图所示

如何制作bootstrap警示框的链接

2.实现代码如下

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>警示框的链接</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" 
    href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" 
    integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh5u" 
    crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件(一般不用引入) -->
    <link rel="stylesheet" 
    href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" 
    integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" 
    crossorigin="anonymous">
</head>
<body>
    <h3>警示框的链接</h3>
    <div class="alert alert-success" role="alert">
        <strong>Well done!</strong> 
        You successfully read 
        <a href="#" class="alert-link">this important alert message</a>
        .
    </div>
    <div class="alert alert-info" role="alert">
        <strong>Heads up!</strong>
         This 
         <a href="#" class="alert-link">alert needs your attention</a>
         , but it's not super important.
    </div>
    <div class="alert alert-warning" role="alert">
        <strong>Warning!</strong>
         Better check yourself, you're 
         <a href="#" class="alert-link">not looking too good</a>
         .
    </div>
    <div class="alert alert-danger" role="alert">
        <strong>Oh snap!</strong>
        <a href="#" class="alert-link">Change a few things up</a>
         and try submitting again.
    </div>


    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" 
    integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" 
    crossorigin="anonymous"></script>
</body>
</html>

看完上述内容,你们掌握如何制作bootstrap警示框的链接的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注亿速云行业资讯频道,感谢各位的阅读!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI