- 個人網頁(html+css+js)——帶背景音樂、櫻花飄落效果
- 頁面美觀,樣式豐富
- 可以根據自己需求進行修改
- 源碼在這里獲取https://download.csdn.net/download/weixin_61370021/86087510
- 首頁
- 主頁頁面
- 博客頁面
- 相冊頁面
文章來源:http://www.zghlxwxcb.cn/news/detail-504320.html
- 視頻頁面
文章來源地址http://www.zghlxwxcb.cn/news/detail-504320.html
- index.html
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lily Yu的主網頁</title>
<link href="css/styles.css" rel="stylesheet">
</head>
<body>
<div class="home">
<div class="content">
<div class="stars"></div>
<img class="bgc" src="img/1-4.jpg" width="100%" height="100%" alt="">
<h2 class="title">歡迎來到我的個人網站</h2>
<h3 class="titles">今天也是美好的一天</h3>
<!-- <img class="icon" src="./img/abc.jpg" alt="">-->
<div class='ribbon'>
<a href='home_page.html'><span>主頁</span></a>
<a href='blog_major.html'><span>博客</span></a>
<a href='album.html'><span>相冊</span></a>
<a href='video.html'><span>視頻</span></a>
</div>
<audio autoplay="autoplay" id="audio" loop="loop" preload="auto" controls="pausebutton" ><!--面板設置-->
<source src="music/起風了(Cover 高橋優(yōu)) - 買辣椒也用券.mp3" type="audio/MP3" ><!--內容設置-->
</audio>
<!-- <img class="music_img" src="./img/music_img.png" alt="" > -->
</div>
</body>
<script>
let mucics = document.getElementById('audio')
document.body.addEventListener('mousemove', function() {
setTimeout(() => {
mucics.play();
}, 2000);
}, false);
</script>
<script src="js/jquery.min.js">
</script>
</html>
到了這里,關于用HTML+CSS+JS做一個漂亮的個人網頁的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!