js+css实现带声音解说的简约儿童故事绘本幻灯片代码
代码语言:html
所属分类:幻灯片
代码描述:js+css实现带声音解说的简约儿童故事绘本幻灯片代码
代码标签: js css 声音 解说 儿童 简约 故事 绘本 幻灯片 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>悬梁刺股 - 故事绘本</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); height: 100vh; overflow: hidden; } .story-container { position: relative; width: 100%; height: 100vh; display: flex; flex-direction: column; } .image-container { flex: 1; position: relative; overflow: hidden; background: #000; } .story-image { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; } .subtitle-container { position: absolute; bottom: 80px; left: 20px; right: 20px; background: rgba(0, 0, 0, 0.8); padding: 15px 20px; border-radius: 15px; backdrop-filter: blur(10px); } .subtitle-text { color: white; font-size: 18px; line-height: 1.6; text-align: center; font-weight: 500; } .controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; align-items: center; } .control-btn { width: 50px; height: 50px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: #333; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0