zoukankan      html  css  js  c++  java
  • Bootstrap基础9(工具提示框、警告框、弹出框)

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>工具提示框、警告框、弹出框</title>
    <link rel="stylesheet" href="css/bootstrap.css">
    <script src="js/jquery-3.2.1.js"> </script>
    <script src="js/bootstrap.js"></script>
    <script src="js/holder.js"></script>
    <script>
    $(function () {
    $('[data-toggle="tooltip"]').tooltip();
    $('[data-toggle="tooltip"]').tooltip({trigger:"click"});
    $('[data-toggle="popover"]').popover();

    })
    </script>
    </head>
    <body>

    <div class="container">
    <h2 class="page-header">工具提示框</h2>
    <button class="btn btn-success btn-lg" title="向上" data-toggle="tooltip" data-placement="top" style="margin-top: 30px">一路向北</button><br/>
    <button class="btn btn-primary btn-lg" title="向左" data-toggle="tooltip" data-placement="left" style="margin-left: 30px">一路向东</button>
    <button class="btn btn-info btn-lg" title="向右" data-toggle="tooltip" data-placement="right" style="margin-right: 30px">一路向西</button><br/>
    <button class="btn btn-danger btn-lg" title="向下" data-toggle="tooltip" data-placement="bottom" style="margin-bottom: 30px">一路向南</button>
    <br/>
    <h2 class="page-header">警告框</h2>
    <div class="alert alert-warning">
    <button class="close" data-dismiss="alert">&times;</button>
    <p>禁止入内</p>
    </div>

    <br/>
    <h2 class="page-header">弹出框</h2>
    <button class="btn btn-primary" title="一路向西" data-content="精彩即将上映!" data-toggle="popover" data-placement="right" style="margin-right: 30px;">快播</button>
    </div>
    </body>
    </html>
  • 相关阅读:
    POJ 1887 Testing the CATCHER
    HDU 3374 String Problem
    HDU 2609 How many
    POJ 1509 Glass Beads
    POJ 1458 Common Subsequence
    POJ 1159 Palindrome
    POJ 1056 IMMEDIATE DECODABILITY
    POJ 3080 Blue Jeans
    POJ 1200 Crazy Search
    软件体系结构的艺术阅读笔记1
  • 原文地址:https://www.cnblogs.com/YoogaChan/p/6896267.html
Copyright © 2011-2022 走看看