上机1

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>花样链接卡</title>
<style>
div{
border: solid red 2px;
width: 300px;
height: 300px;
padding: 10px;
}
a {
color: white;
display: inline-block;
height: 100px;
width: 100px;
background:pink ;
text-align: center;
line-height:100px;
text-decoration: none;
}
a:hover{
background:deepskyblue ;
}
a:nth-of-type(2){
position: relative;
left: 100px;
}
a:nth-of-type(3){
position: relative;
top: 200px;
right: 200px;
}
a:nth-of-type(4){
position: relative;
left: 200px;
top: 100px;
}
</style>
</head>
<body>
<div>
<a href="">链接1</a><a href="">链接2</a><a href="">链接3</a><a href="">链接4</a><a href="">链接5</a>
</div>
</body>
</html>

上机2

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>带按钮的图片横幅广告</title>
<style>
#adverImg{
width: 430px;
height: 130px;
position: relative;
}
#number{
position: absolute;
right: 5px;
bottom: 2px;
}
li{
float: left;
margin-right: 5px;
width: 20px;
height: 20px;
border: 1px #666 solid;
text-align: center;
line-height: 20px;
font-size: 12px;
list-style: none;
background: #FFF;
}
</style>
</head>
<body>
<div id="adverImg">
<img src="data:image/adver-01.jpg" alt="夏日商品促销"/>
<div id="number">
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
</ul>
</div>
</div>
</body>
</html>

上机3

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>奖多多安全购彩页面</title>
<style>
body{
margin: 0 auto;
width: 1012px;
position: relative;
}
img:nth-of-type(2){
position: absolute;
left: -250px;
top: 200px;
}
img:nth-of-type(3){
position: absolute;
right: -165px;
top: 200px;
}
img:nth-of-type(4){
position: fixed;
right: 0;
top: 230px;
}
img:nth-of-type(5){
position: fixed;
right: 0;
bottom: 0;
}
</style>
</head>
<body>
<img src="data:image/1.bmp"/>
<img src="data:image/2.bmp"/>
<img src="data:image/3.bmp"/>
<img src="data:image/4.bmp"/>
<img src="data:image/5.bmp"/>
</body>
</html>

上机4

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>当当图书榜</title>
<style>
body {
padding: 5px;
margin: 0 auto;
width: 960px;
position: relative;
}
header img:nth-of-type(2){
position: absolute;
top: 15px;
right: 190px;
}
header > ul {
padding: 5px 8px;
position: absolute;
top: 15px;
right: 5px;
border-top: solid 1px #b5ffe3;
border-left: solid 1px #b5ffe3;
border-right: solid 1px #b5ffe3;
background: #e6fff1;
font-size: 12px;
}
header > ul > li {
float: left;
list-style: none;
}
header > ul > li a{
color: #6c6c6c;
text-decoration: none;
}
header > ul > li a:hover{
color: #f03c3d;
}
nav ul{
position: absolute;
top: 45px;
right: 5px;
border: solid 1px #ff7133;
width: 958px;
height: 40px;
padding: 0;
background: #ff6c1d;
}
nav li{
float: left;
list-style: none;
line-height: 40px;
width: 40px;
padding-left: 15px;
font-size: 15px;
}
nav a{
color: white;
text-decoration: none;
}
nav a:hover{
text-decoration: underline;
}
section>img:nth-of-type(1){
position: absolute;
top: 112px;
}
section div{
position: absolute;
top: 250px;
border: solid 2px #4bff9c;
width: 956px;
height: 370px;
}
section>img:nth-of-type(2){
position: absolute;
top: 266px;
left: -6px;
}
div img:nth-of-type(1) {
position: absolute;
top: 90px;
}
div img:nth-of-type(2) {
position: absolute;
top: 90px;
left: 560px;
}
div img:nth-of-type(3) {
position: absolute;
top: 230px;
left: 560px;
}
div img:nth-of-type(4) {
position: absolute;
top: 85px;
left: 20px;
}
div img:nth-of-type(5) {
position: absolute;
top: 85px;
left: 560px;
}
div img:nth-of-type(6) {
position: absolute;
top: 230px;
left: 560px;
}
p{
font-family:Verdana,"宋体";
font-size: 12px;
line-height: 26px;
}
#p1{
position: absolute;
top: 90px;
left: 260px;
width: 280px;
height: 250px;
}
#p2{
position: absolute;
top: 80px;
left: 660px;
width: 280px;
height: 250px;
}
section a{
color: #3e78ed;
font-size: 15px;
text-decoration: none;
}
section a:hover{
color: green;
}
.s1{
color: #cf150a;
font-weight: bold;
}
.s2{
color: #979993;
}
footer{
position: absolute;
top: 612px;
width: 960px;
height: 90px;
text-align: center;
}
footer p{
color: #979993;
vertical-align: middle;
}
footer img{
vertical-align: middle;
}
</style>
</head>
<body>
<header>
<img src="data:image/logo.jpg"/>
<ul>
<li><a href="">尾品汇</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
<li><a href="">当当优品</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
<li><a href="">数字馆</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
<li><a href="">都看阅器</a></li>
</ul>
<img src="data:image/icon_count.png"/>
<nav>
<ul>
<li><a href="">首页</a></li>
<li><a href="">图书</a></li>
<li><a href="">音像</a></li>
<li><a href="">童装</a></li>
<li><a href="">服装</a></li>
<li><a href="">鞋靴</a></li>
<li><a href="">运动</a></li>
<li><a href="">箱包</a></li>
<li><a href="">美妆</a></li>
<li><a href="">珠宝</a></li>
<li><a href="">家居</a></li>
<li><a href="">食品</a></li>
<li><a href="">酒</a></li>
<li><a href="">手机</a></li>
<li><a href="">数码</a></li>
<li><a href="">电脑</a></li>
<li><a href="">家电</a></li>
</ul>
</nav>
</header>
<section>
<img src="data:image/banner.png"/>
<div>
<img src="data:image/book-01.jpg"/>
<img src="data:image/book-02.jpg"/>
<img src="data:image/book-03.jpg"/>
<img src="data:image/bookNo1.gif"/>
<img src="data:image/bookNo2.gif"/>
<img src="data:image/bookNo3.gif"/>
<p id="p1">
<a href="">偷影子的人</a><br/>
作 者:[法] 马克·李维(Marc Levy)著,段韵灵 译<br/>
出版社:湖南文艺出版社<br/>
当当价:<span class="s1">¥ 17.90</span><br/>
不知道姓氏的克蕾儿。这就是你在我生命里的角色,我童年时的小女孩,今日蜕变成了女人,一段青梅竹马的回忆,一个时间之神没有应允的愿望。一个老是受班上同学欺负的瘦弱小男孩,因为拥有一种特殊能力而强大:他能“偷别人的影子”,因而能看见他
</p>
<p id="p2">
<a href="">看见(央视知名记者、主持人柴静:十年个人成长的告白,中国社会变迁的备忘</a><br/>
作 者:柴静 著<br/>
出版社:广西师范大学出版社<br/>
<span class="s1">¥ 29.40</span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="s2">7.4折</span><br/>
<a href="">改变孩子先改变自己</a><br/>
作 者:贾容韬 贾毅 著<br/>
出版社:作家出版社<br/>
<span class="s1">¥ 22.20</span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="s2">7.4折</span>
</p>
</div>
<img src="data:image/bg_bang.gif"/>
</section>
<footer>
<p>Copyright (C) 当当网 2004-2017, All Rights Reserved<img src="data:image/validate.gif">京ICP证041189号出版物经营许可证 新出发京批字第直0673号</p>
</footer>
</body>
</html>

课后3

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>美食今日推荐</title>
<style>
*{
margin: 0;
}
div{
margin: 50px auto;
height: 373px;
width: 280px;
border: 1px solid #04e7ff;
border-radius: 10px;
position: relative;
}
h4{
color: red;
margin-top: 22px;
margin-left: 32px;
}
h4 span {
color: black
}
div>a{
position: absolute;
right: 10px;
top: 22px;
}
#first{
float: left;
padding-left: 20px;
margin-top: 10px;
}
#second{
float: right;
padding-left: 0;
margin-top: 10px;
margin-right: 30px;
}
h5 a{
color: #b80613;
line-height: 28px;
font-size: 8px;
}
p{
line-height: 17px;
font-size:10px;
color: #525050;
}
span{
color: #989595;
}
li{
list-style: none;
height: 77px;
text-align: left;
}
div>img{
position: absolute;
left: 80px;
top: 43px;
}
</style>
</head>
<body>
<div>
<h4>SHOP<span> 今日推荐</span></h4>
<a href=""><img src="data:image/more.gif"></a>
<ul id="first">
<li><img src="data:image/img9.gif"/></li>
<li><img src="data:image/img7.gif"/></li>
<li><img src="data:image/img8.gif"/></li>
<li><img src="data:image/img7.gif"/></li>
</ul>
<ul id="second">
<li><h5><a href="">汉来国际美食百货</a></h5><p><span>口味:</span>创意中餐<br/><span>区域:</span>朝阳/CBD</p></li>
<li><h5><a href="">汉来国际美食百货</a></h5><p><span>口味:</span>创意中餐<br/><span>区域:</span>朝阳/CBD</p></li>
<li><h5><a href="">汉来国际美食百货</a></h5><p><span>口味:</span>创意中餐<br/><span>区域:</span>朝阳/CBD</p></li>
<li><h5><a href="">汉来国际美食百货</a></h5><p><span>口味:</span>创意中餐<br/><span>区域:</span>朝阳/CBD</p></li>
</ul>
<img src="data:image/shen.png"/>
</div>
</body>
</html>

课后4

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>京东轮播图</title>
<style>
#background{
position: relative;
height: 454px;
width: 1200px;
text-align: center;
margin-top: 40px;
}
#number{
position: absolute;
left: 545px;
bottom: 10px;
}
a{
float: left;
margin-right: 5px;
width: 16px;
height: 16px;
border-radius: 50%;
border: 1px #666 solid;
line-height: 14px;
font-size: 12px;
list-style: none;
background: #666;
text-decoration: none;
color: white;
}
a:hover{
background: orange;
border: 1px orange solid;
}
</style>
</head>
<body>
<div id="background"><img src="data:image/focus.jpg"/>
<div id="number">
<a href="">1</a>
<a href="">2</a>
<a href="">3</a>
<a href="">4</a>
<a href="">5</a>
</div>
</div>
</body>
</html>

课后5

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>新东方顶部导航菜单</title>
<style>
*{
margin: 0;
}
#first{
background: url("image/logo.gif") no-repeat 10px,url("image/open_icon.gif") no-repeat 558px,url("image/top_bg.gif");
border-bottom: dotted 1px #c3c3b8;
height: 26px;
width: 600px;
position: relative;
}
p{
position: absolute;
left: 140px;
float: left;
list-style: none;
height: 26px;
text-align: center;
font-size: 12px;
line-height: 26px;
color: #818181;
}
span{
color: #d1d1d1;
}
#second{
border: 1px solid #b9b9b9;
position: absolute;
left: 343px;
top: 20px;
width: 200px;
padding: 0 10px;
background: white;
}
ul{
padding: 10px 6px ;
float: left;
width: 185px;
}
li{
list-style: none;
font-size: 12px;
line-height: 22px;
color: #989898;
float: left;
margin-right: 14px;
}
ul:nth-of-type(1),ul:nth-of-type(2){
border-bottom: solid 1px #dbdbdb;
}
</style>
</head>
<body>
<div id="first">
<p>
购物车&nbsp;&nbsp;&nbsp;&nbsp;<span>|</span>&nbsp;&nbsp;&nbsp;
优惠券&nbsp;&nbsp;&nbsp;&nbsp;<span>|</span>&nbsp;&nbsp;&nbsp;
快速注卡&nbsp;&nbsp;&nbsp;&nbsp;<span>|</span>&nbsp;&nbsp;&nbsp;
各地购课&nbsp;&nbsp;&nbsp;&nbsp;<span>|</span>&nbsp;&nbsp;&nbsp;
手机报&nbsp;&nbsp;&nbsp;&nbsp;<span>|</span>&nbsp;&nbsp;&nbsp;
网站导航
</p>
</div>
<div id="second">
<ul>
<li>托福</li>
<li>雅思</li>
<li>考研</li>
<li>职称英语</li>
<li>初中</li>
<li>日语</li>
</ul>
<ul>
<li>网络课堂</li>
<li>资讯中心</li>
<li>知识堂</li>
<li>大师讲坛</li>
<li>学习论坛</li>
<li>学词</li>
<li>考研搜校</li>
</ul>
<ul>
<li>M-Zone</li>
<li>手机报</li>
<li>时时英语</li>
</ul>
</div>
</body>
</html>

html (第四本书第八章参考)的更多相关文章

  1. html (第四本书第九章参考)

    上机1 <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8 ...

  2. html (第四本书第七章浮动参考)

    课上1 <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8 ...

  3. html (第四本书第1~3章参考)

    前三章都不会的话 呵呵……

  4. html (第四本书第五章参考)

    上机1 <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8 ...

  5. html (第四本书第四章参考)

    上机1 <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8 ...

  6. html (第四本书第六章盒子模型参考)

    上机1 <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8 ...

  7. 『.NET Core CLI工具文档』(十四)dotnet-install 脚本参考

    说明:本文是个人翻译文章,由于个人水平有限,有不对的地方请大家帮忙更正. 原文:dotnet-install scripts reference 翻译:dotnet-install 脚本参考 名称 d ...

  8. 四、API使用参考

    官方文档:https://docs.blender.org/api/blender_python_api_current/info_api_reference.html Blender有很多互连数据类 ...

  9. java编程思想第四版第八章习题

    第一题 package net.mindview.polymorphism; //基类-自行车 class Cycle{ } //子类-单轮车 class Unicycle extends Cycle ...

随机推荐

  1. Access时间日期函数大全

    这里特别推荐WeekdayName() 函数.MonthName() 函数,将日期转换为中文星期名与月份,如"星期一"."五月"一.Date() 函数.Now( ...

  2. JavaScript--Dom间接选择器

    一.Dom间接选择器 间接查找的属性 parentNode // 父节点 childNodes // 所有子节点 firstChild // 第一个子节点 lastChild // 最后一个子节点 n ...

  3. [六字真言]5.咪.功力不足,学习前端JavaScript异常

    A Guide to Proper Error Handling in JavaScript 这是关于JavaScript中异常处理的故事.如果你相信 墨菲定律 ,那么任何事情都可能出错,不,一定会出 ...

  4. Dubbo学习笔记11:使用Dubbo中需要注意的一些事情

    指定方法异步调用 前面我们讲解了通过设置ReferenceConfig的setAsync()方法来让整个接口里的所有方法变为异步调用,那么如何指定某些方法为异步调用呢?下面讲解下如何正确地设置默写方法 ...

  5. 正则tips

    在啃Sizzle源码,被几个正则表达式给难住了,写了一下正则demo,记录一下 1,按照定义[]和(?:)里的内容不计入捕获组的数目 2,捕获组的计数顺序是,从大到小,同级从左到右 例如 var re ...

  6. Docker学习笔记五 仓库

    本文地址:https://www.cnblogs.com/veinyin/p/10452224.html  以下均为命令行下操作 登录登出 docker login // 登录 docker logo ...

  7. Android getScrollX()详解

    在开发中相信大家在自定义View时会时不时的使用getScrollX()方法,为了便于之后的开发工作,本篇博客主要记录了我对getScrollX()方法的理解. getScrollX:Return t ...

  8. Longest Words

    Given a dictionary, find all of the longest words in the dictionary. Example Given { "dog" ...

  9. camera驱动框架分析(上)

    前言 camera驱动框架涉及到的知识点比较多,特别是camera本身的接口就有很多,有些是直接连接到soc的camif口上的,有些是通过usb接口导出的,如usb camera.我这里主要讨论前者, ...

  10. mysql-5.7.13-winx64 免安装版配置方法

    1.下载MySQL Community Server 5.7.13 解压MySQL压缩包 2.修改 my-default.ini skip-grant-tables 作用是安装好MySQL后 免密码登 ...