一个简易电子书html+css

简介: 一个简易电子书html+css

效果如下

34.1.png34.2.png

滚动条可滑动,代码可直接使用

简易电子书.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>简易电子书</title>
</head>
<style type="text/css">
  article{display: inline-block;border-style: solid;border-width: 3px;margin:auto;height: 520px;}
  article article{width: 0px;height: 500px;border:none;}
  article img{width: 200px;height: 200px;margin-left: 20px;margin-right: 50px;margin-top: 0px;}
  article div{width: 245px;background-color: #C0C0C0;margin:5px;}
  article div a{margin:auto;text-decoration: none;color:#000000;padding: 10px; font:1.2em/40px microsoft yahei;}
  div:hover{background-color: #808080;}
  iframe{margin-left: 255px;margin-top: 0px;}
</style>
<body>
  <article>
  <article>
    <img src="https://img2.baidu.com/it/u=2117023534,1834717210&fm=253&fmt=auto&app=138&f=JPEG?w=719&h=500" alt="图片路径不正确">
    <div><a href="招标法.html#p1" target="win">第一章 </a></div>
    <div><a href="招标法.html#p2" target="win">第二章 </a></div>
    <div><a href="招标法.html#p3" target="win">第三章 </a></div>
    <div><a href="招标法.html#p4" target="win">第四章 </a></div>
    <div><a href="招标法.html#p5" target="win">第五章 </a></div>
    <div><a href="招标法.html#p6" target="win">image标签</a></div>
    <div><a href="招标法.html#p8" target="win"> 列表</a></div>
    <!-- <iframe name="my-iframe" id="my-iframe" src="img/KVE.jpg" frameborder="2px" width="500px" height="600px" scrolling="yes"></iframe> -->
    <!-- <a href="http://127.0.0.1:8848/web%E8%AF%BE%E7%A8%8B/index.html"  target="my-iframe" class="aa1">点击我子网页可以跳转到你需要的地方</a> -->
  </article>
  <iframe src="招标法.html" frameborder="1" width="800px" height="500px" name="win"></iframe>
  </article>
</body>
</html>

招标法.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>66666</title>
</head>
<style type="text/css">
  article{margin:auto;}
  article p{text-indent: 2em;}
  .h1{
  text-align: center;
  text-decoration: inherit;
  }
  .mz{
  text-align: right;
  color: blue;
  }
</style>
<body>
  <h1 class="h1">一个电子书</h1>
  <h5 class="mz">193080204</h2>
  <article>
  <h3 id="p1">第一章 </h3>
  <p> <i>Lorem</i> <del>ipsum dolor sit</del> amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
  <strong> <p>x<sup>2</sup>  +     y<sup>2</sup>  =z<sup>2</sup>      </p></strong> 
  <h3 id="p2">第二章 </h3>
  <p> <i>Lorem</i> <del>ipsum dolor sit</del> amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
  <strong> <p>x<sup>2</sup>  +     y<sup>2</sup>  =z<sup>2</sup>      </p></strong> 
  <h3 id="p3">第三章 </h3>
  <p> <i>Lorem</i> <del>ipsum dolor sit</del> amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
  <strong> <p>x<sup>2</sup>  +     y<sup>2</sup>  =z<sup>2</sup>      </p></strong> 
        <h3 id="p4">第四章 </h3>
  <p> <i>Lorem</i> <del>ipsum dolor sit</del> amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
  <strong> <p>x<sup>2</sup>  +     y<sup>2</sup>  =z<sup>2</sup>      </p></strong> 
  <h3 id="p5">第五章 评标</h3>
  <p> <i>Lorem</i> <del>ipsum dolor sit</del> amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
  <strong> <p>x<sup>2</sup>  +     y<sup>2</sup>  =z<sup>2</sup>      </p></strong> 
  <h3 id="p6">img标签</h3>
  <p> <i>Lorem</i> <del>ipsum dolor sit</del> amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <img src="https://img1.baidu.com/it/u=2044188042,3077327654&fm=253&fmt=auto&app=120&f=JPEG?w=575&h=594" height="200px">
    <img src="https://img1.baidu.com/it/u=3937883021,1882300844&fm=253&fmt=auto&app=138&f=JPG?w=362&h=300" height="200px">
    <img src="https://img2.baidu.com/it/u=2147728552,948143809&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281" width="300px" height="200px">
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
  <strong> <p>x<sup>2</sup>  +     y<sup>2</sup>  =z<sup>2</sup>      </p></strong> 
  <h3 id="p7">列表</h3>
  <p> <i>Lorem</i> <del>ipsum dolor sit</del> amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi molestias corrupti veniam enim laboriosam soluta porro vero ratione repellendus accusantium praesentium omnis, blanditiis rem maxime esse mollitia? Voluptate, eaque iste!</p>
  <strong> <p>x<sup>2</sup>  +     y<sup>2</sup>  =z<sup>2</sup>      </p></strong> 
  </article>
  <div class="lab" id="p8">
  <ul style="list-style: none;">
    <li>
    问题1:你的性别是什么?
    <ol type="A">
      <li>男</li>
      <li>女</li>
    </ol>
    </li>
    <li>
    问题2:你的年龄是?
    <ol type="A">
      <li>&lt;10</li>
      <li>10-20</li>
      <li>&gt;20</li>
    </ol>
    </li>
  </ul>
  </div>
</body>
</html>

相关文章
|
2月前
|
前端开发
Html:CSS的书写位置
Html:CSS的书写位置
36 0
|
6天前
|
移动开发 前端开发 JavaScript
[HTML、CSS]细节与使用经验
本文总结了前端开发中的一些重要细节和技巧,包括CSS选择器、定位、层级、全局属性、滚轮控制、轮播等。作者以纯文字形式记录,便于读者使用<kbd>Ctrl + F</kbd>快速查找相关内容。文章还提供了示例代码,帮助读者更好地理解和应用这些知识点。
24 1
[HTML、CSS]细节与使用经验
|
8天前
|
移动开发 前端开发 JavaScript
[HTML、CSS]知识点
本文涵盖前端知识点扩展、HTML标签(如video、input、canvas)、datalist和details标签的使用方法,以及CSS布局技巧(如margin、overflow: hidden和动态height)。文章旨在分享作者的学习经验和实用技巧。
20 1
[HTML、CSS]知识点
|
1月前
|
前端开发 JavaScript 搜索推荐
打造个人博客网站:从零开始的HTML和CSS之旅
【9月更文挑战第32天】在这个数字化的时代,拥有一个个人博客不仅是展示自我的平台,也是技术交流的桥梁。本文将引导初学者理解并实现一个简单的个人博客网站的搭建,涵盖HTML的基础结构、CSS样式的美化技巧以及如何将两者结合来制作一个完整的网页。通过这篇文章,你将学会如何从零开始构建自己的网络空间,并在互联网世界留下你的足迹。
|
3天前
|
移动开发 JavaScript 前端开发
html table+css实现可编辑表格的示例代码
html table+css实现可编辑表格的示例代码
|
4天前
|
前端开发 JavaScript 安全
HTML+CSS+JS密码灯登录表单
通过结合使用HTML、CSS和JavaScript,我们创建了一个带有密码强度指示器的登录表单。这不仅提高了用户体验,还帮助用户创建更安全的密码。希望本文的详细介绍和代码示例能帮助您在实际项目中实现类似功能,提升网站的安全性和用户友好性。
10 3
|
15天前
|
JSON 移动开发 数据格式
html5+css3+js移动端带歌词音乐播放器代码
音乐播放器特效是一款html5+css3+js制作的手机移动端音乐播放器代码,带歌词显示。包括支持单曲循环,歌词显示,歌曲搜索,音量控制,列表循环等功能。利用json获取音乐歌单和歌词,基于html5 audio属性手机音乐播放器代码。
64 6
|
14天前
|
前端开发
HTML 样式- CSS3
内部样式表适用于单个文件的特别样式,通过&lt;head&gt;部分的&lt;style&gt;标签定义;外部样式表适用于多个页面,通过&lt;link&gt;标签引用外部CSS文件;&lt;style&gt;定义样式,&lt;link&gt;引用资源;已弃用的标签有&lt;font&gt;、&lt;center&gt;、&lt;strike&gt;,属性有color和bgcolor。
|
14天前
HTML 样式- CSS2
HTML样式实例展示了如何使用`font-family`、`color`和`font-size`属性来定义字体样式,以及使用`text-align`属性来设置文本的对齐方式。示例包括标题和段落的样式设置。