gpt4 book ai didi

javascript - 尝试这样做时警告框未关闭

转载 作者:太空宇宙 更新时间:2023-11-04 01:21:01 25 4
gpt4 key购买 nike

我已经复制了这段代码并出现了警告框,但是当我点击“x”时它似乎并没有关闭,这是代码:

<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="css/bootstrap.css">
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="alert alert-danger">
<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>The File will be deleted!
</div>
</div>
</body>
</html>

图书馆: this is the way I imported them

最佳答案

您的库似乎是此代码正常工作的问题,请检查

    <!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
<div class="alert alert-success alert-dismissible">
<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
<strong>Success!</strong> This alert box could indicate a successful or positive action.
</div>
</div>
</body>
</html>

关于javascript - 尝试这样做时警告框未关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49094308/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com