码迷,mamicode.com
首页 > Web开发 > 详细

Bootstrap中js部分模拟弹窗

时间:2019-10-14 14:52:58      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:rap   模拟   sheet   data-   dia   lin   pre   htm   min   

<html>

<head>
    <link rel="stylesheet" type="text/css" href="cho.css">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="cho.js"></script>
    <meta charset="utf-8">

    <script src="js/bootstrap.min.js"></script>
    <title>404</title>
</head>

<body>
<button type="button" data-toggle="modal" data-target="#myModal">click</button>
<div class="modal fade" id="myModal">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="alert modal"
                aria-hidden="true">&times;</button>
                <h4 class="modal-title">title</h4>
            </div>
            <div class="modal-body">
                <p>testtesttest</p>
            </div>
            <div class="modal-footer">
                <button class="btn btn-info" type="button" data-dismiss="modal">close</button>
                <button class="btn btn-primary" type="button">text</button>
            </div>
        </div>

    </div>
</div>


</body>

</html>

引入Bootstrap后只用html代码

Bootstrap中js部分模拟弹窗

标签:rap   模拟   sheet   data-   dia   lin   pre   htm   min   

原文地址:https://www.cnblogs.com/tomatofjy/p/11671119.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!