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: 'KaiTi', '楷体', serif;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%23f4f1e8" opacity="0.3"/><circle cx="75" cy="75" r="0.3" fill="%23e8e5dc" opacity="0.5"/></pattern></defs><rect width="100" height="100" fill="%23f9f6f0"/><rect width="100" height="100" fill="url(%23grain)"/></svg>') #f9f6f0;
            height: 100vh;
            overflow: hidden;
        }

        .story-container {
            position: relative;
            width: 100%;
            height: 100vh;
            display: flex;
            flex-direction: column;
            background: linear-gradient(45deg, rgba(139, 69, 19, 0.1) 0%, rgba(160, 82, 45, 0.1) 100%);
        }

        .scroll-top, .scroll-bottom {
            height: 40px;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 40"><path d="M0,20 Q100,0 200,20 T400,20 L400,40 L0,40 Z" fill="%23d4af37"/></svg>') repeat-x;
            background-size: 400px 40px;
        }

        .image-container {
            flex: 1;
            position: relative;
            margin: 0 20px;
            border: 3px solid #d4af37;
            border-radius: 10px;
            overflow: hidden;
            background: #fff;
            box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.3);
        }

        .story-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .subtitle-container {
            position: absolute;
            bottom: 60px;
            left: 15px;
            right: 15px;
            background: rgba(249, 246, 240, 0.95);
           .........完整代码请登录后点击上方下载按钮下载查看

网友评论0