|
3 hafta önce | |
---|---|---|
images | 3 hafta önce | |
README.md | 3 hafta önce | |
index.html | 3 hafta önce | |
script.js | 3 hafta önce | |
styles.css | 3 hafta önce |
这是一个基于图片设计的在线娱乐平台H5单页应用,采用现代化的移动端设计理念。
h5/
├── index.html # 主HTML文件
├── styles.css # 样式文件
├── script.js # JavaScript交互逻辑
└── README.md # 项目说明文档
index.html
文件# 使用Python
python -m http.server 8000
# 使用Node.js
npx serve .
# 使用PHP
php -S localhost:8000
然后在浏览器中访问 http://localhost:8000
在 styles.css
中修改CSS变量:
:root {
--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
--background-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
在 index.html
中修改游戏数量显示:
<p class="game-count"><span class="dot red"></span>5834 Sông</p>
在 index.html
的 main-content
部分添加新的卡片:
<div class="card card-new">
<div class="card-content">
<div class="card-text">
<h3>新功能名称</h3>
<p class="game-count"><span class="dot green"></span>游戏数量</p>
</div>
<div class="card-image">
<!-- 图标内容 -->
</div>
</div>
</div>
在 script.js
中添加新的CSS动画:
const newAnimation = `
@keyframes newAnimation {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
`;
style.textContent += newAnimation;
本项目仅供学习和演示使用。