javascript - 这些按钮不会改变文本颜色或图像大小。我认为我的 javascript 链接不正确?

标签 javascript html css frontend

这是关于代码学校准备工作的调试部分。我根本无法让按钮工作。我没有太多经验,但我认为我的 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/

相关文章:

javascript - 在 JS 中访问属性时如何抛出错误?

javascript - 向服务器发送二进制数据

javascript - 如何在不向上滚动的情况下在视口(viewport)中显示文本?

php - 添加 http ://prefix to URL when missing

javascript - 选择 Div 标题文本并使用 Jquery 制作数组

javascript - 让 AngularJS 与其他 javascript 很好地配合

javascript - 何时在 javascript 函数中使用括号

javascript - 查找并删除 jQuery 插件实例上闭包内保存的 DOM 元素

javascript - 如何使 Canvas 上的文本移动动画更平滑(减少锯齿状运动)?

javascript - li作为使用 Vanilla Javascript的选择项