效果图:

HTML:

<!DOCTYPE html>
<html lang="en-us"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>St Huxley's Community College</title><link href="index.css" type="text/css" rel="stylesheet" /></head><body><header><h1>St Huxley's Community College</h1></header><section><h2>Brave new world</h2><p>It's a brave new world out there. Our children are being put inincreasing more competitive situations, both during recreation, and asthey start to move into the adult world of<a href="https://en.wikipedia.org/wiki/Examination">examinations</a>,<a href="https://en.wikipedia.org/wiki/Jobs">jobs</a>,<a href="https://en.wikipedia.org/wiki/Career">careers</a>, and otherlife choices. Having the wrong mindset, becoming<a href="https://en.wikipedia.org/wiki/Emotion">too emotional</a>, ormaking the wrong choices can contribute to them experiencing difficultyin taking their rightful place in today's ideal society.</p><p>As concerned parents, guardians or carers, you will no doubt want togive your children the best possible start in life — and you've come tothe right place.</p><h2>The best start in life</h2><p>At St. Huxley's, we pride ourselves in not only giving our students atop quality education, but also giving them the societal and emotionalintelligence they need to win big in the coming utopia. We not onlyexcel at subjects such as genetics, data mining, and chemistry, but wealso include compulsory lessons in:</p><ul><li>Emotional control</li><li>Judgement</li><li>Assertion</li><li>Focus and resolve</li></ul><p>If you are interested, then you next steps will likely be to:</p><ol><li><a href="#">Call us</a> for more information</li><li><a href="#">Ask for a brochure</a>, which includes signup form</li><li><a href="#">Book a visit</a>!</li></ol></section><aside><h2>Top course choices</h2><ul><li><a href="#">Genetic engineering</a></li><li><a href="#">Genetic mutation</a></li><li><a href="#">Organic Chemistry</a></li><li><a href="#">Pharmaceuticals</a></li><li><a href="#">Biochemistry with behaviour</a></li><li><a href="#">Pure biochemistry</a></li><li><a href="#">Data mining</a></li><li><a href="#">Computer security</a></li><li><a href="#">Bioinformatics</a></li><li><a href="#">Cybernetics</a></li></ul><p><a href="#">See more</a></p></aside><nav><ul><li><a href="#">Home</a></li><li><a href="#">Finding us</a></li><li><a href="#">Courses</a></li><li><a href="#">Staff</a></li><li><a href="#">Media</a></li><li><a href="#">Prospectus</a></li></ul></nav><footer><p>&copy; 2016 St Huxley's Community College</p></footer></body>
</html>

CSS:

/* General setup */* {box-sizing: border-box;
}body {margin: 0 auto;min-width: 1000px;max-width: 1400px;
}/* Layout */section {float: left;width: 50%;
}aside {float: left;width: 30%;
}nav {float: left;width: 20%;
}footer {clear: both;
}header,
section,
aside,
nav,
footer {padding: 20px;
}/* header and footer */header,
footer {border-top: 5px solid #a66;border-bottom: 5px solid #a66;
}/* WRITE YOUR CODE BELOW HERE */
/* ||设置header的字体 */
header {font-family: sans-serif;
}/* ||设置body的字体和样式 */
body {font-family: serif;line-height: 1.5;letter-spacing: 0.1em;word-spacing: 0.2em;
}/* ||设置全站网页 font-size 为 10px。 */
html {font-size: 10px;
}/* ||设置各个元素的字体大小 */
h1 {font-size: 4em;text-align: center;letter-spacing: 0.2em;
}h2 {font-size: 2.5em;
}p {font-size: 1.5em;
}section h2 + p {text-indent: 20px;
}/* ||设置超链接的样式(顺序:L,V,F,H,A) 记忆:LoVe Fears HAte */
a {padding: 2px 1px 0;
}a:link {color: #a66;
}a:visited {color: #a66;
}a:focus {color: #a66;text-decoration: none;outline: none;
}a:hover {color: #a66;text-decoration: none;
}a:active {background-color: antiquewhite;color: #a00;
}/* ||设置section下紧挨着h2的p元素里面的a的样式 */
section h2 + p a {padding: 2px 16px 0 1px;background: url("lianjie.png") 100% 0 no-repeat;
}/* ||去掉默认的黑点 */
ul {list-style-type: none;
}/* ||设置section,aside中li的样式 */
section ul li,
aside ul li {padding-left: 2rem;background-position: 0 0;background-size: 1.6rem 1.6rem;background-repeat: no-repeat;
}section ul li {background-image: url("orange.png");
}aside ul li {background-image: url("star.png");
}/* ||设置nav中a的样式 */
nav ul li a {text-decoration: none;display: block;width: 20rem;height: 8rem;border: 1px solid #a66;margin: 2rem 0;text-align: center;line-height: 8rem;font-size: 2rem;font-weight: bold;
}nav ul li a:hover {background-color: antiquewhite;
}

MDN-CSS-排版社区大学首页相关推荐

  1. css 排版_Web排版的未来:CSS字体4级

    css 排版 Web字体为设计注入了生命,帮助我们避免了在Web设计初期广泛使用的系统默认设置. 当今有许多可用的选项,我们有很多技巧可以提供和设置自定义字体. CSS字体模块的第4级概述了您会喜欢的 ...

  2. 使用html+css+js制作小米首页

    文章目录 使用html+css+js制作小米首页 1.html制作小米官网页面结构(`index.html`) 2.使用css设置公共样式(`base.css`) 3.使用css设置页面元素样式(`i ...

  3. H5+css : 360商城的首页布局模拟

    H5+css : 360商城的首页布局模拟 因为360商城页面过长,商品分类页面只选择了一个页面做一下实现.且只做了基本的布局和鼠标悬停效果 <!DOCTYPE html> <htm ...

  4. Bucking the stigma (留学生请摘掉有色眼镜看社区大学)

    Many Chinese students second-guess the benefits of attending a US community college. 很多中国学生对去美国社区大学学 ...

  5. CSS仿艺龙首页鼠标移入图片放大

    CSS仿艺龙首页鼠标移入图片放大,效果似乎没有js好...... <!DOCTYPE html> <html lang="en"> <head> ...

  6. CSS排版练习小作业,文字围绕图片显示,基本的float浮动定位

    简单的css排版 基本的float浮动定位 文字围绕图片显示 css代码,float分成两块 <style type="text/css">div.float1{flo ...

  7. 从文档流来看内联元素和块元素的css排版

    veda原创[抄录]讲得很好存自己这里看 从文档流来看内联元素和块元素的css排版 CSS文档流与块级元素(block).内联元素(inline),之前翻阅不少书籍,看过不少文章, 看到所多的是零碎的 ...

  8. CSS类似微软中国首页的竖向选项卡

    效果体验: http://hovertree.com/texiao/css/24/ 源码下载: http://hovertree.com/h/bjaf/hardklps.htm 代码如下: <! ...

  9. 社区大学--另一个进入名牌大学的途径

    美国的"社区大学"越来越多的高中生与家长们的热门词汇.而以前,中国学生和家长几乎对美国社区大学闻所未闻.如今,进入美国社区大学的中国大学本科生也愈来愈多,远远超过了那些直接进入美国 ...

最新文章

  1. SLAM/检测跟踪/多传感器融合方向实习生招聘 | 腾讯Robotics X实验室
  2. ==与equals的区别(四个例子简单易懂)附jvm简图
  3. wps office oa控件 痕迹_WPS大更新,Office的付费功能免费用,我不会是最后一个知道的吧?...
  4. nginx优化及配置
  5. Ubuntu 16.04卸载CUDA 6.5和安装CUDA 8.0
  6. 理解离散傅立叶变换(一. 傅立叶变换的由来)
  7. Android之各个手机版本WiFi热点的创建
  8. linux后台不挂断运行 nohup命令
  9. BZOJ 2160 拉拉队排练
  10. hc sr04流程图_HC-SR04超声模块示例代码/原理图/说明书等全套资料
  11. vdcode C语言不能弹出运行窗口_C语言编程常见问题分析,以及错误解决办法!
  12. MYSQL中group_concat有长度限制!默认1024(转载)
  13. ELK下elasticsearch 性能调优
  14. 创建 maven maven-archetype-quickstart 项目抱错问题解决方法
  15. .Net Compact Framework 基础篇(10)--多语言程序的定制
  16. (转)AppDomain 和动态加载
  17. angular学习之路(一)
  18. 智能优化算法:类电磁机制算法 - 附代码
  19. mysql的engine不同,导致事物回滚失败的问题
  20. 【离散数学】集合论 第四章 函数与集合(5) 集合的基数、可数与不可数集合

热门文章

  1. Redis设计与实现——对象
  2. JavaScript判断一个数字是否为素数
  3. proteus元件大全 仿真元件 电子元器件英文缩写
  4. tomcat重启命令操作
  5. 小程序实现图片上传,并获取fileID存入数据库
  6. 1.6Java-接口、抽象类
  7. 什么浏览器有html控制台,HTML标记突破出现在浏览器br,也可作为br,开发者控制台...
  8. linux堆内存管理
  9. DoIP协议从入门到精通系列——DoIP协议时间参数
  10. Linux - 安装内核源码