0
点赞
收藏
分享

微信扫一扫

8. 电子书展示页面

8. 电子书展示页面

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>E-Book Showcase</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f1f3f5;
        }
        header {
            background: #6c757d;
            color: #fff;
            padding: 20px;
            text-align: center;
        }
        .container {
            width: 80%;
            margin: 20px auto;
        }
        .book {
            display: flex;
            margin-bottom: 20px;
            background: #fff;
            border-radius: 5px;
            padding: 15px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        .book img {
            max-width: 150px;
            margin-right: 20px;
            border-radius: 5px;
        }
        .book h2 {
            margin: 0;
            font-size: 1.5em;
        }
        .book p {
            margin: 5px 0;
        }
        footer {
            background: #6c757d;
            color: #fff;
            text-align: center;
            padding: 10px 0;
            position: fixed;
            bottom: 0;
            width: 100%;
        }
    </style>
</head>
<body>
    <header>
        <h1>E-Book Showcase</h1>
    </header>
    <div class="container">
        <div class="book">
            <img src="ebook1.jpg" alt="E-Book 1">
            <div>
                <h2>The Great Adventure</h2>
                <p>Author: John Smith</p>
                <p>Price: $9.99</p>
                <button>Buy Now</button>
            </div>
        </div>
        <div class="book">
            <img src="ebook2.jpg" alt="E-Book 2">
            <div>
                <h2>The Mystery Novel</h2>
                <p>Author: Jane Doe</p>
                <p>Price: $12.99</p>
                <button>Buy Now</button>
            </div>
        </div>
        <div class="book">
            <img src="ebook3.jpg" alt="E-Book 3">
            <div>
                <h2>Learning JavaScript</h2>
                <p>Author: Alice Johnson</p>
                <p>Price: $14.99</p>
                <button>Buy Now</button>
            </div>
        </div>
    </div>
    <footer>
        <p>© 2024 E-Book Showcase</p>
    </footer>
</body>
</html>

举报

相关推荐

0 条评论