web学习第一课,div+css的简单网页
2017-01-18 14:35
411 查看
最近开始研究web方面的东西,基本上可以说是从零开始,先写一个简单的静态网页
效果如下:
<!DOCTYPE html> <html> <head> <style> #header { background-color:black; color:white; text-align:center; padding:5px; } #nav { line-height:30px; background-color:#eeeeee; height:300px; width:100px; float:left; padding:5px; } #section { width:350px; float:left; padding:10px; } #footer { background-color:red; color:white; width:100%; height:30px; margin:0 auto; position:fixed; bottom:0; text-align:center; } </style> </head> <body> <div id="header"> <h1>City Gallery</h1> </div> <div id="nav"> London<br> Paris<br> Tokyo<br> </div> <div id="section"> <h2>London</h2> <p> London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants. </p> <p> Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium. </p> </div> <div id="footer"> Copyright ? W3Schools.com </div> </body> </html>
效果如下:
相关文章推荐
- DIV+CSS 网页TIP的简单作法
- 【javaweb 学习笔记】 第一课 最简单的登陆
- [网页基础]CSS+DIV布局,简单布局例子
- web技术_css+div完成网页设计
- 简单学习CSS网页布局 三
- 纯CSS+DIV实现的竖向菜单(简单例子,提供学CSS的朋友学习)
- CSS_DIV学习记录2(用背景颜色实现一个网页的完整布局)
- 【网上收藏】Web 2.0网页设计DIV+CSS必备资源
- [网页基础]DIV+CSS学习笔记(二)深入理解盒子模型
- DIV+CSS 网页TIP的简单作法
- 学习DIV+CSS网页制作的流程及如何学习CSS?
- 简单学习CSS网页布局(初学者)
- 新手该怎么学习DIV+CSS网页标准布局?
- Web 2.0网页设计DIV+CSS必备资源
- DIV+CSS 网页TIP的简单作法
- CKEditor学习 | div的float属性 | margin:0px auto和text-align居中对齐的区别 | Fireworks网页切片 | ReportViewer的简单使用
- Web前端开发:DIV+CSS网页布局总结
- 新手该怎么学习DIV+CSS网页标准布局?
- 简单学习CSS网页布局 二
- 新手如何学习DIV+CSS制作前台网页