我感觉我的代码应该是正确的,但它却没有任何反应。我是否漏掉了什么?
$(document).ready(function() {
$("h2").addClass("animated bounce");
});
这是我的HTML代码。
以下是需要翻译的内容:
<head>
<title>Brandon Stranc | Front End Developer</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <!-- to scale well with mobile -->
<link rel="stylesheet" type="text/css" href="_css/style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> -->
<!-- <script src="_js/script.js"></script> -->
</head>
<header id="header">
<div class="overlay">
<nav>
<a href="#projects" class="slide-section" title="">Projects</a>
<a href="#about-me" class="slide-section" title="">About Me</a>
<a href="#contact" class="slide-section" title="">Contact</a>
</nav>
<h2>Front End Developer</h2>
<h4>Making Websites for BB ♥</h4>
</div>
</header>