<!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> disabled 属性可制作一个禁用的按钮:</p> <button type="button" class="btn btn-default" disabled="disabled">禁用的默认按钮</button> <br><br> <p> .disabled 类使得链接不可用:</p> <a href="#" class="btn btn-info disabled" role="button">禁用的信息链接</a> </div> </body> </html>
原文地址:https://www.cnblogs.com/tszr/p/10888854.html
时间: 2024-10-09 04:26:47