使用通用关闭图标可以消除模型和警报之类的内容。使用class 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>