关闭 Bootstrap 类
使用通用的关闭图标来关闭内容(例如模型和警报)。使用类 close 来获取关闭图标。
您可以尝试运行以下代码来实现关闭 Bootstrap 类的功能
示例
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <p>Close Icon: <button type = "button" class = "close" aria-hidden = "true"> × </button> </p> </body> </html>
广告