<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"> 
        <title>菜鸟教程(runoob.com)</title> 
        <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">  
        <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
        <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    </head>
    <body>

        <div class="container">
            <h2>按钮</h2>
            <p>.btn-block 类制作一个块级按钮(拉伸至父元素100%的宽度):</p>            
            <button type="button" class="btn btn-info btn-block">块级按钮</button>
        </div>

    </body>
</html>

吴裕雄 Bootstrap 前端框架开发——Bootstrap 按钮:块级按钮(拉伸至父元素100%的宽度)

 

相关文章:

  • 2021-12-31
  • 2022-12-23
  • 2021-12-29
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-17
  • 2021-08-25
  • 2022-12-23
  • 2022-01-27
  • 2021-12-05
  • 2022-02-12
  • 2022-01-03
相关资源
相似解决方案