源代码:
x
 
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"> 
    <title>Fmpq教程(fmpq.com)</title> 
    <link rel="stylesheet" href="http://www.fmpq.com/jscss/bootstrap/bootstrap.min.css">  
    <script src="http://www.fmpq.com/jscss/bootstrap/jquery.min.js"></script>
    <script src="http://www.fmpq.com/jscss/bootstrap/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>  
测试结果:
尝试一下 - © fmpq.com