<!DOCTYPE html>
<html>
<head>
  <title>西游记 - 中国古典文学名著</title>
  <style>
    body {
      font-family: 'Arial', sans-serif;
      background-color: #f2f2f2;
      margin: 0;
      padding: 20px;
    }
    h1 {
      color: #333333;
      text-align: center;
      margin-bottom: 20px;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    img {
      display: block;
      margin: 0 auto;
      max-width: 300px;
      height: auto;
      margin-bottom: 20px;
      animation: rotate 4s linear infinite;
      box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }
    @keyframes rotate {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    h2 {
      color: #666666;
      margin-bottom: 10px;
      cursor: pointer;
      transition: color 0.3s ease;
      text-decoration: underline;
    }
    h2:hover {
      color: #337ab7;
    }
    p {
      color: #777777;
      line-height: 1.5;
      margin-bottom: 10px;
    }
    ul {
      list-style-type: none;
      padding-left: 0;
      margin-bottom: 20px;
    }
    li {
      margin-bottom: 5px;
    }
    a {
      color: #337ab7;
      text-decoration: none;
    }
    a:hover {
      text-decoration: underline;
    }
    .hidden {
      display: none;
    }
    .container {
      max-width: 800px;
      margin: 0 auto;
      padding: 20px;
      background-color: #ffffff;
      box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
      border-radius: 10px;
    }
    .fade {
      opacity: 1;
      transition: opacity 0.3s ease;
    }
    .fade.hidden {
      opacity: 0;
    }
  </style>
  <script>
    function toggleChapter(id) {
      var chapter = document.getElementById(id);
      chapter.classList.toggle('hidden');
      chapter.classList.toggle('fade');
    }
  </script>
</head>
<body>
  <div class='container'>
    <h1>西游记</h1>
    <img src='path/to/cover.jpg' alt='西游记封面图片'>
<pre><code>&lt;h2 onclick='toggleChapter('chapters')'&gt;书籍介绍&lt;/h2&gt;
&lt;div id='chapters' class='hidden fade'&gt;
  &lt;p&gt;《西游记》是中国古代四大名著之一,是明代作家吴承恩创作的神魔小说。小说以真人投胎转世的唐僧师徒四人西天取经的故事为主线,以唐僧师徒历经九九八十一难,最终得到真经的经历,融入了大量的神话传说和佛教、道教、儒家等思想,形象地刻画了人心善恶、善恶报应的哲理。&lt;/p&gt;
&lt;/div&gt;

&lt;h2 onclick='toggleChapter('chapterList')'&gt;章节列表&lt;/h2&gt;
&lt;ul id='chapterList' class='hidden fade'&gt;
  &lt;li&gt;&lt;a href='#chapter1'&gt;第一回 那傻猴初度天庭陈述性命&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href='#chapter2'&gt;第二回 唐僧取经不成反受难 斗战灵山教徒头目&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href='#chapter3'&gt;第三回 师徒四众各显神通 悟空降妖翻世短见&lt;/a&gt;&lt;/li&gt;
  &lt;!-- 添加更多章节 --&gt;
&lt;/ul&gt;

&lt;h2 onclick='toggleChapter('author')'&gt;作者简介&lt;/h2&gt;
&lt;div id='author' class='hidden fade'&gt;
  &lt;p&gt;吴承恩(1500年-1582年),明代文人,字汝忠,号射阳山人,江苏扬州府广陵人,祖籍浙江绍兴。他是一位杰出的小说家和文学评论家,被誉为小说批评的奠基人之一。吴承恩创作了《西游记》、《红楼梦》等杰出作品,成为中国古代文学史上的瑰宝。&lt;/p&gt;
&lt;/div&gt;
</code></pre>
  </div>
</body>
</html>
西游记 - 中国古典文学名著

原文地址: https://www.cveoy.top/t/topic/pdh 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录