源码介绍
简易表白网页HTML源码,源码内容很少,并且经过AI改造,自适应手机电脑,展现出来的效果很不错,还有音乐播放器,快发给你的女朋友看看吧,祝天下有情人终成眷属~
效果截图
源码如下
<!DOCTYPE html>
<html>
<head>
<meta charset="gb2312">
<title>表白网页</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
overflow: hidden;
}
body {
background: url(https://pic.imagurl.cn/imagurl/2025/04/22/68074c0e51b6d.png) no-repeat center center fixed;
background-size: cover;
position: relative;
}
/* 音乐播放器适配 */
.aplayer {
position: fixed;
bottom: 20px;
right: 20px;
width: 300px;
max-width: 90%;
z-index: 999;
border-radius: 15px;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
@media screen and (max-width: 768px) {
.aplayer {
width: 90%;
left: 5%;
right: auto;
bottom: 10px;
}
}
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css">
</head>
<body>
<div id="aplayer"
class="aplayer"
data-theme="#F58EA8"
data-order="random"
data-listfolded="true"
data-fixed="true"
data-type="song"
data-server="netease"
data-id="2120715749"
data-autoplay="true"></div>
<script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script>
<script src="https://unpkg.com/meting@1.2.0/dist/Meting.min.js"></script>
</body>
</html>
© 版权声明
本站资源来自互联网收集,仅供用于学习和交流,请勿用于商业用途。如有侵权、不妥之处,请联系站长并出示版权证明以便删除。敬请谅解!
THE END