这是关于代码学校准备工作的调试部分。我根本无法让按钮工作。我没有太多经验,但我认为我的 javascript 链接不正确。 javascript 文件是 logic.js,css 文件是 style.css,我确保它们在同一个文件夹中。
<!DOCTYPE html>
<html>
<head>
<title>Boo The Dog</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Linking CSS -->
<link rel="stylesheet" type="text/css" href="style.css">
<!-- Linking jQuery -->
<script type="text/javascript" src="logic.js" ></script>
</head>
<body>
this is also at the bottom of the code
<script type="text/javascript" src="logic.js"></script>
最佳答案
在您的代码中,您有两个脚本链接。你能提供你的目录结构吗?
关于javascript - 这些按钮不会改变文本颜色或图像大小。我认为我的 javascript 链接不正确?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57838885/