我正在创建我的投资组合网站,由于某种原因,向下滑动方法不接受速度参数。 hide方法可以工作,slideDown也可以,但是很快,任何帮助将不胜感激。该操作以前曾起作用,但由于某种原因现已停止,我不知道为什么
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Portfolio</title>
<link href="../css/portfolio_style.css" rel="stylesheet" type="text/css">
</head>
<body>
<header class="header" id="header">
</header>
<nav>
<ul>
<li><a href="../index.html#resume">Resume</a></li>
<li><a href="../index.html#about">About Me</a></li>
<li><a href="../index.html#skills">Skills</a></li>
<li><a href="../index.html#projects">Projects</a></li>
<li><a href="../index.html#github">GitHub</a></li>
<li><a href="../index.html#design">Design</a></li>
<li><a href="../index.html#contact">Contact</a></li>
</ul>
</nav>
<resume class="resume" id="resume">
</resume>
<about class="about" id="about">
<skills class="skills" id="skills">
<img src-"" alt="">
<img src-"" alt="">
<img src-"" alt="">
<img src-"" alt="">
<img src-"" alt="">
<img src-"" alt="">
<img src-"" alt="">
</skills>
</about>
<projects class="projects" id="projects">
<github class="github" id="github">
</github>
</projects>
<design class="design" id="design">
</design>
<contact class="contact" id="contact">
</contact>
<footer class="footer" id="footer">
</footer>
<script src="../js/jquery-3.3.1.min.js"></script>
<script src="../js/porftilio.js"></script>
</body>
</html>`
$(document).ready(function(){
$('#header').hide().slideDown(3000);
});