实现样式要求:


image:

banner.png:

generaloverview.png:

background.png:

bannerbackground.png:

rottenbig.png:

rottenbackground.png:

fresh.gif

rotten.gif

critic.gif



文件目录:

-image

-movie.css

-skeleton.html

-tmnt.html


文件内容:

movie.css

  1. body {
  2. background-image: url("images/background.png");
  3. padding:;
  4. margin:;
  5. }
  6. * {
  7. font-size: 8pt;
  8. font-family: Verdana, Tahoma, sans-serif;
  9. }
  10. q {
  11. font-weight: bold;
  12. }
  13. .toppic {
  14. height: 50px;
  15. text-align: center;
  16. background-repeat: repeat-x;
  17. background-image: url("images/bannerbackground.png");
  18. }
  19. .bigheading {
  20. text-align: center;
  21. font-size: 24pt;
  22. font-family: Tahoma, Verdana, sans-serif;
  23. font-weight: bold;
  24. }
  25. .main {
  26. position: relative;
  27. /*margin-right: auto;
  28. margin-left: auto;*/
  29. overflow: hidden;
  30. border-bottom:0px;
  31. width:800px;
  32. margin:0 auto;
  33. border :4px gray solid;
  34. }
  35. .rottenbigDiv {
  36. margin-left:;
  37. width: 550px;
  38. float: left;
  39. background-image: url("images/rottenbackground.png");
  40. background-repeat: repeat-x;
  41. }
  42. #redDiv {
  43. font-size: 48pt;
  44. color: red;
  45. font-weight: bold;
  46. /*vertical-align: bottom;*/
  47. }
  48. .rottenbigDiv img {
  49. vertical-align: bottom;
  50. height: 83px;
  51. }
  52. #zitiDiv {
  53. color: white;
  54. /*vertical-align: 12px;*/
  55. }
  56. .quote {
  57. /*font-size: 8pt;*/
  58. background-color: #E1D697;
  59. border: 2px gray solid;
  60. padding: 8px;
  61. overflow: hidden;
  62. font-weight: bold;
  63. }
  64. .contentleft {
  65. width: 550px;
  66. margin:;
  67. overflow: hidden;
  68. }
  69. .contentDiv {
  70. margin-left: 2%;
  71. width: 47%;
  72. float: left;
  73. }
  74. .leftcontent {
  75. /*overflow: hidden;*/
  76. /*margin-left: 2%;*/
  77. margin-bottom: 3em;
  78. }
  79. .imagep {
  80. overflow: hidden;
  81. }
  82. .generaloverviewDiv {
  83. float: right;
  84. background-color: #A2B964;
  85. width:250px;
  86. padding-bottom: 10px;
  87. }
  88. dt {
  89. font-family: Arial, sans-serif;
  90. font-weight: bold;
  91. }
  92. dd {
  93. font-family: Arial, sans-serif;
  94. margin-bottom: 1em;
  95. }
  96. dl {
  97. margin: 1em;
  98. }
  99. #bar {
  100. padding: 5px;
  101. width:800px;
  102. text-align: center;
  103. background-color: #A2B964;
  104. float: right;
  105. margin:;
  106. }
  107. .bottom {
  108. float: right;
  109. position: fixed;
  110. right: 0px;
  111. bottom: 0px;
  112. }
  113. .kuangImage {
  114. float: left;
  115. vertical-align: top;
  116. margin-right: 5px;
  117. }
  118. .xieti {
  119. font-style: italic;
  120. }

skeleton.html

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>TMNT - Rancid Tomatoes</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7. <link href="movie.css" type="text/css" rel="stylesheet" />
  8. </head>
  9.  
  10. <body>
  11. <div>
  12. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/banner.png" alt="Rancid Tomatoes" />
  13. </div>
  14.  
  15. <h1>TMNT (2007)</h1>
  16.  
  17. <div>
  18. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/generaloverview.png" alt="general overview" />
  19. </div>
  20.  
  21. <dl>
  22. <dt>STARRING</dt>
  23. <dd>Mako <br /> Sarah Michelle Gellar</dd>
  24.  
  25. <dt>DIRECTOR</dt>
  26. <dd>Kevin Munroe</dd>
  27.  
  28. <dt>RATING</dt>
  29. <dd>PG</dd>
  30.  
  31. <dt>THEATRICAL RELEASE</dt>
  32. <dd>Mar 23, 2007</dd>
  33.  
  34. <dt>MOVIE SYNOPSIS</dt>
  35. <dd>After the defeat of their old arch nemesis, The Shredder, the Turtles have grown apart as a family.</dd>
  36.  
  37. <dt>MPAA RATING</dt>
  38. <dd>PG, for animated action violence, some scary cartoon images and mild language</dd>
  39.  
  40. <dt>RELEASE COMPANY</dt>
  41. <dd>Warner Bros.</dd>
  42.  
  43. <dt>GENRE</dt>
  44. <dd>Action/Adventure, Comedies, Childrens, Martial Arts, Superheroes, Ninjas, Animated Characters</dd>
  45.  
  46. <dt>OFFICIAL MOVIE SITE</dt>
  47. <dd><a href="http://www.tmnt.com/">The Official TMNT Site</a></dd>
  48. </dl>
  49.  
  50. <div>
  51. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/rottenbig.png" alt="Rotten" />
  52. 32% (88 reviews total)
  53. </div>
  54.  
  55. <p>
  56. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/rotten.gif" alt="Rotten" />
  57. <q>Ditching the cheeky, self-aware wink that helped to excuse the concept's inherent corniness, the movie attempts to look polished and 'cool,' but the been-there animation can't compete with the then-cutting-edge puppetry of the 1990 live-action movie.</q>
  58. </p>
  59. <p>
  60. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/critic.gif" alt="Critic" />
  61. Peter Debruge <br />
  62. Variety
  63. </p>
  64.  
  65. <p>
  66. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/fresh.gif" alt="Fresh" />
  67. <q>TMNT is a fun, action-filled adventure that will satisfy longtime fans and generate a legion of new ones.</q>
  68. </p>
  69. <p>
  70. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/critic.gif" alt="Critic" />
  71. Todd Gilchrist <br />
  72. IGN Movies
  73. </p>
  74.  
  75. <p>
  76. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/rotten.gif" alt="Rotten" />
  77. <q>It stinks!</q>
  78. </p>
  79. <p>
  80. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/critic.gif" alt="Critic" />
  81. Jay Sherman (unemployed)
  82. </p>
  83.  
  84. <p>
  85. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/rotten.gif" alt="Rotten" />
  86. <q>The rubber suits are gone and they've been redone with fancy computer technology, but that hasn't stopped them from becoming dull.</q>
  87. </p>
  88. <p>
  89. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/critic.gif" alt="Critic" />
  90. Joshua Tyler <br />
  91. CinemaBlend.com
  92. </p>
  93.  
  94. <p>
  95. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/rotten.gif" alt="Rotten" />
  96. <q>The turtles themselves may look prettier, but are no smarter; torn irreparably from their countercultural roots, our superheroes on the half shell have been firmly co-opted by the industry their creators once sought to spoof.</q>
  97. </p>
  98. <p>
  99. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/critic.gif" alt="Critic" />
  100. Jeannette Catsoulis <br />
  101. New York Times
  102. </p>
  103.  
  104. <p>
  105. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/rotten.gif" alt="Rotten" />
  106. <q>Impersonally animated and arbitrarily plotted, the story appears to have been made up as the filmmakers went along.</q>
  107. </p>
  108. <p>
  109. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/critic.gif" alt="Critic" />
  110. Ed Gonzalez <br />
  111. Slant Magazine
  112. </p>
  113.  
  114. <p>
  115. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/fresh.gif" alt="Fresh" />
  116. <q>The striking use of image and motion allows each sequence to leave an impression. It's an accomplished restart to this franchise.</q>
  117. </p>
  118. <p>
  119. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/critic.gif" alt="Critic" />
  120. Mark Palermo <br />
  121. Coast (Halifax, Nova Scotia)
  122. </p>
  123.  
  124. <p>
  125. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/rotten.gif" alt="Rotten" />
  126. <q>The script feels like it was computer generated. This mechanical presentation lacks the cheesy charm of the three live action films.</q>
  127. </p>
  128. <p>
  129. <img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/critic.gif" alt="Critic" />
  130. Steve Rhodes <br />
  131. Internet Reviews
  132. </p>
  133.  
  134. <p>(1-8) of 88</p>
  135.  
  136. <a href="http://validator.w3.org/check/referer"><img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/w3c-xhtml.png" alt="Valid XHTML 1.1" /></a> <br />
  137. <a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="http://www.cs.washington.edu/education/courses/cse190m/09sp/homework/2/w3c-css.png" alt="Valid CSS!" /></a>
  138.  
  139. </body>
  140. </html>

tmnt.html

  1. <!DOCTYPE html>
  2. <html lang = "en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <link href="movie.css" rel="stylesheet">
  6. <title>TMNT - Rancid Tomatoes</title>
  7. <link rel="shortcut icon" href="favicon.ico" >
  8. <link rel="icon" href="images/rotten.gif" type="image/gif" >
  9. </head>
  10.  
  11. <body>
  12. <div class = "toppic">
  13. <img src="data:images/banner.png" alt="Rancid Tomatoes" />
  14. </div>
  15. <h1 class = "bigheading">TMNT (2007)</h1>
  16. <div class = "main">
  17. <div class = "generaloverviewDiv">
  18. <img src="data:images/generaloverview.png" alt="general overview" />
  19.  
  20. <dl>
  21. <dt>STARRING</dt>
  22. <dd>Mako <br /> Sarah Michelle Gellar</dd>
  23.  
  24. <dt>DIRECTOR</dt>
  25. <dd>Kevin Munroe</dd>
  26.  
  27. <dt>RATING</dt>
  28. <dd>PG</dd>
  29.  
  30. <dt>THEATRICAL RELEASE</dt>
  31. <dd>Mar 23, 2007</dd>
  32.  
  33. <dt>MOVIE SYNOPSIS</dt>
  34. <dd>After the defeat of their old arch nemesis, The Shredder, the Turtles have grown apart as a family.</dd>
  35.  
  36. <dt>MPAA RATING</dt>
  37. <dd>PG, for animated action violence, some scary cartoon images and mild language</dd>
  38.  
  39. <dt>RELEASE COMPANY</dt>
  40. <dd>Warner Bros.</dd>
  41.  
  42. <dt>GENRE</dt>
  43. <dd>Action/Adventure, Comedies, Childrens, Martial Arts, Superheroes, Ninjas, Animated Characters</dd>
  44.  
  45. <dt>OFFICIAL MOVIE SITE</dt>
  46. <dd><a href="http://www.tmnt.com/">The Official TMNT Site</a></dd>
  47. </dl>
  48. </div>
  49. <div class = "rottenbigDiv">
  50. <img src="data:images/rottenbig.png" alt="Rotten" />
  51. <span id = "redDiv">32%</span><span id = "zitiDiv">(88 reviews total)</span>
  52. </div>
  53. <div class = "contentleft">
  54. <div class = "contentDiv">
  55. <div class = "leftcontent">
  56. <p class = "quote">
  57. <img class = "kuangImage" src="data:images/rotten.gif" alt="Rotten" />
  58. <q>Ditching the cheeky, self-aware wink that helped to excuse the concept's inherent corniness, the movie attempts to look polished and 'cool,' but the been-there animation can't compete with the then-cutting-edge puppetry of the 1990 live-action movie.</q>
  59. </p>
  60. <p class = "imagep">
  61. <img class = "kuangImage" src="data:images/critic.gif" alt="Critic" />
  62. Peter Debruge <br />
  63. <span class = "xieti">Variety</span>
  64. </p>
  65. </div>
  66.  
  67. <div class = "leftcontent">
  68. <p class = "quote">
  69. <img class = "kuangImage" src="data:images/fresh.gif" alt="Fresh" />
  70. <q>TMNT is a fun, action-filled adventure that will satisfy longtime fans and generate a legion of new ones.</q>
  71. </p>
  72. <p class = "imagep">
  73. <img class = "kuangImage" src="data:images/critic.gif" alt="Critic" />
  74. Todd Gilchrist <br />
  75. <span class = "xieti">IGN Movies</span>
  76. </p>
  77. </div>
  78.  
  79. <div class = "leftcontent">
  80. <p class = "quote">
  81. <img class = "kuangImage" src="data:images/rotten.gif" alt="Rotten" />
  82. <q>It stinks!</q>
  83. </p>
  84. <p class = "imagep">
  85. <img class = "kuangImage" src="data:images/critic.gif" alt="Critic" />
  86. Jay Sherman (unemployed)
  87. </p>
  88. </div>
  89.  
  90. <div class = "leftcontent">
  91. <p class = "quote">
  92. <img class = "kuangImage" src="data:images/rotten.gif" alt="Rotten" />
  93. <q>The rubber suits are gone and they've been redone with fancy computer technology, but that hasn't stopped them from becoming dull.</q>
  94. </p>
  95. <p class = "imagep">
  96. <img class = "kuangImage" src="data:images/critic.gif" alt="Critic" />
  97. Joshua Tyler <br />
  98. <span class = "xieti">CinemaBlend.com</span>
  99. </p>
  100. </div>
  101. </div>
  102.  
  103. <div class = "contentDiv">
  104. <div class = "leftcontent">
  105. <p class = "quote">
  106. <img class = "kuangImage" src="data:images/rotten.gif" alt="Rotten" />
  107. <q>The turtles themselves may look prettier, but are no smarter; torn irreparably from their countercultural roots, our superheroes on the half shell have been firmly co-opted by the industry their creators once sought to spoof.</q>
  108. </p>
  109. <p class = "imagep">
  110. <img class = "kuangImage" src="data:images/critic.gif" alt="Critic" />
  111. Jeannette Catsoulis <br />
  112. <span class = "xieti">New York Times</span>
  113. </p>
  114. </div>
  115.  
  116. <div class = "leftcontent">
  117. <p class = "quote">
  118. <img class = "kuangImage" src="data:images/rotten.gif" alt="Rotten" />
  119. <q>Impersonally animated and arbitrarily plotted, the story appears to have been made up as the filmmakers went along.</q>
  120. </p>
  121. <p class = "imagep">
  122. <img class = "kuangImage" src="data:images/critic.gif" alt="Critic" />
  123. Ed Gonzalez <br />
  124. <span class = "xieti">Slant Magazine</span>
  125. </p>
  126. </div>
  127.  
  128. <div class = "leftcontent">
  129. <p class = "quote">
  130. <img class = "kuangImage" src="data:images/fresh.gif" alt="Fresh" />
  131. <q>The striking use of image and motion allows each sequence to leave an impression. It's an accomplished restart to this franchise.</q>
  132. </p>
  133. <p class = "imagep">
  134. <img class = "kuangImage" src="data:images/critic.gif" alt="Critic" />
  135. Mark Palermo <br />
  136. <span class = "xieti">Coast (Halifax, Nova Scotia)</span>
  137. </p>
  138. </div>
  139.  
  140. <div class = "leftcontent">
  141. <p class = "quote">
  142. <img class = "kuangImage" src="data:images/rotten.gif" alt="Rotten" />
  143. <q>The script feels like it was computer generated. This mechanical presentation lacks the cheesy charm of the three live action films.</q>
  144. </p>
  145. <p class = "imagep">
  146. <img class = "kuangImage" src="data:images/critic.gif" alt="Critic" />
  147. Steve Rhodes <br />
  148. <span class = "xieti">Internet Reviews</span>
  149. </p>
  150. </div>
  151. </div>
  152. </div>
  153.  
  154. <p id = "bar">(1-8) of 88</p>
  155. </div>
  156. <div class = "bottom">
  157. <a href="http://validator.w3.org/check/referer"><img src="data:images/w3c-xhtml.png" alt="Valid XHTML 1.1" /></a> <br />
  158. <a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="data:images/w3c-css.png" alt="Valid CSS!" /></a>
  159. </div>
  160. </body>
  161. </html>

推荐使用chrome扩展程序Page Ruler

【web】movie review——静态页面训练、css训练的更多相关文章

  1. 用手机自带uc浏览器查看静态页面,css样式不显示

    问题描述: 这个问题是一个同事在写手机页面用UC浏览器测试以后遇到的,其他浏览器静态页面显示正常,唯独UC浏览器不显示页面样式. 我测试过代码是没有问题的,因为临时没有找到安卓手机,就猜想PC端的应该 ...

  2. Web.Config 对静态文件 js css img 的客户端缓存策略

    <?xml version="1.0" encoding="utf-8"?> <configuration> <system.we ...

  3. mvc伪静态<四> 伪静态后静态页面或者引用的css和图片失效

    引用的css和图片失效的解决办法 把样式引用文件的相对路径改成绝对路径就可以了 比如原先的引用路径为:<link href="~/Content/css/style.css" ...

  4. html+css实现小米商城首页静态页面

    学了一个星期的html和css,用新学的东西写点东西,仿照小米商城的首页按照它的页面布局盗用它的图片写了个小米商城的静态页面. 源代码:链接:https://pan.baidu.com/s/1qf63 ...

  5. mac os x 之通过远程主机在nginx上部署web静态页面

    1.mac使用ssh命令登陆远程主机 因为苹果mac os x自带ssh命令,所以我们只需打开终端输入 $ ssh user@remote 在这之前最好在服务器上上传自己的ssh key,避免每次登陆 ...

  6. python之web框架(1):完成静态页面web服务器

    python的web框架(1) 1.首先写一个最简单的web服务器,只能给客户回应一个固定的hello world的页面. from socket import * from multiprocess ...

  7. 用nginx的反向代理机制解决前端跨域问题在nginx上部署web静态页面

    用nginx的反向代理机制解决前端跨域问题在nginx上部署web静态页面 1.什么是跨域以及产生原因 跨域是指a页面想获取b页面资源,如果a.b页面的协议.域名.端口.子域名不同,或是a页面为ip地 ...

  8. Apache 后台服务器(主要处理php及一些功能请求 如:中文url)   Nginx 前端服务器(利用它占用系统资源少得优势来处理静态页面大量请求)   Lighttpd 图片服务器   总体来说,随着nginx功能得完善将使他成为今后web server得主流。

    Apache 后台服务器(主要处理php及一些功能请求 如:中文url) Nginx 前端服务器(利用它占用系统资源少得优势来处理静态页面大量请求) Lighttpd 图片服务器 总体来说,随着ngi ...

  9. WEB页面采集器编写经验之一:静态页面采集器

    严格意义来说,采集器和爬虫不是一回事:采集器是对特定结构的数据来源进行解析.结构化,将所需的数据从中提取出来:而爬虫的主要目标更多的是页面里的链接和页面的TITLE. 采集器也写过不少了,随便写一点经 ...

随机推荐

  1. nodejs 操作文件系统读取写入文件

    我们通过fs这个模块来对文件系统进行操作,对于文件系统操作一般都有同步.异步方法,两者区别,同步等有返回结果时候,在继续执行后面的代码,异步是不等返回结果,直接执行后面的代码,待有返回结果时候,通过回 ...

  2. C++经典问题:狐狸找兔子

    问题描述: 围绕着山顶有10个洞,一只狐狸和一只兔子住在各自的洞里.狐狸想吃掉兔子.一天,兔子对狐狸说:"你想吃我有一个条件,先把洞从1-10编上号,你从10号洞出发,先到1号洞找我:第二次 ...

  3. 面试题: mysql数据库 已看1 简单的sql练习

    数据库总结--MySQL常见面试题 2015年03月24日 17:56:06 阅读数:7787 1.根据部门号从高到低,工资从低到高列出员工的信息 select * from employee ord ...

  4. shell工具使用配置备忘

    一.bash之vi mode.两种方式:set -o vi(只让bash自己进入vi模式)或 set editing-mode vi(让所有使用readline库函数的程序在读取命令行时都进入vi模式 ...

  5. 12、scala隐式转换与隐式参数

    一.隐式转换 1.介绍 Scala提供的隐式转换和隐式参数功能,是非常有特色的功能.是Java等编程语言所没有的功能.它可以允许你手动指定,将某种类型的对象转换成其他类型的对象. 通过这些功能,可以实 ...

  6. Python开发【第六篇】:文件处理

    1. 文件   文件处理流程: 打开文件,获得文件句柄,并赋值 通过句柄对文件进行操作 关闭文件 1.1 打开文件   在 Python 中使用 open()函数打开文件,并返回文件对象: open( ...

  7. 更改数据,ExecuteNonQuery()

    using (mycon) { mycon.Open(); string MyTime; DateTime dtDate; MyTime = textBox1.Text.ToString(); str ...

  8. SAS笔记(2) RETAIN语句

    本文重点: 使用RETIAN,INPUT在每次循环执行时保留上一次PDV中的变量值. SUM语句和SET语句会自动RETAIN变量. 1. RETAIN语句 1.1 Example 1 先来看看在DA ...

  9. remap——ROS中修改订阅的节点名称

    跑数据集或者使用不同传感器时,难免会遇到需要修改topic名称的时候,此时可以有两种做法. 一.直接修改源码.如果有launch文件,则修改launch文件对应的topic 二.直接进行remap操作 ...

  10. springBoot2.0 配置shiro实现权限管理

    一.前言 基于上一篇springBoot2.0 配置 mybatis+mybatisPlus+redis 这一篇加入shiro实现权限管理 二.shiro介绍 2.1 功能特点 Shiro 包含 10 ...