页面加载时,我播放了一个小视频。我隐藏了标题,但是当我使用fadeIn() 时,它不显示。谁能帮我解决这个问题?
<html>
<head>
<style>
#wrapper{width: 99%; margin: auto; text-align: center;}
#header{width: 99%; margin: 35px auto; text-align: center; display: none;}
#main{width: 99%; margin: 35px auto; text-align: center;}
</style>
</head>
<body>
<div id="wrapper">
<div id="header">
Hello
</div>
<div id="main">
<video width="600" height="400" autoplay>
<source src="countdown.webm" type="video/webm">
Your browser does not support the video tag.
</video>
</div>
</div>
<script src="jquery-1.8.2.min.js"></script>
<script>
$(document).ready(function() {
$("video").delay(5000).fadeOut(2000);
$("header").show();
});
</script>
</body>
</html>