图标地址

http://fontawesome.io/icons/

图标用法地址

http://fontawesome.io/examples/

day 60 Bootstrip学习

实现代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Title</title>
    <link rel="stylesheet" href="Font-Awesome-master/css/font-awesome.min.css">
//这句是引入图标
    <link rel="stylesheet" href="../day%2058%20bootstrip/bootstrap-3.3.7-dist/css/bootstrap.min.css">
//这句是引入bootstrap的写法
</head>
<body>
     //通过这两句实现了带删除图标的按键  将a标签弄成一个按钮
  
    <a class="btn btn-danger" href="#">
    <i class="fa fa-trash-o fa-lg"></i> Delete</a>

    <script src="../day%2058%20bootstrip/jquery-3.2.1.min.js"></script>
    <script src="../day%2058%20bootstrip/bootstrap-3.3.7-dist/js/bootstrap.min.js "></script>
</body>
</html>

 弹出模态框

模态框和绑定模态框的按钮

<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
  Launch demo modal
</button>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>
View Code

相关文章:

  • 2021-08-04
  • 2021-12-02
  • 2022-01-15
  • 2021-04-24
  • 2022-02-07
  • 2021-08-05
  • 2021-09-15
猜你喜欢
  • 2022-12-23
  • 2021-05-11
  • 2021-11-13
  • 2021-07-14
  • 2021-07-23
  • 2021-04-21
  • 2021-10-26
相关资源
相似解决方案