HTML与CSS简单页面效果实例
2016-08-11 11:27
441 查看
本篇博客实现一个HTML与CSS简单页面效果实例
index.html
css代码:
效果:
index.html
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <div class="container"> <div class="wrapper"> <div class="heading"> <div class="heading_nav"> <div class="heading_title"> 极客学院 </div> <div class="heading_navbar"> <ul> <li><a href="#">首页</a></li> <li><a href="#">职业课程</a></li> <li><a href="#">技术问答</a></li> <li><a href="#">VIP会员</a></li> </ul> </div> <div class="heading_img"> <img src="img.jpg"> </div> <div class="heading_soptlight"> <form> <input type="text"> </form> </div> </div> </div> <div class="body"> <div class="body_title"> <h3>熟悉极客学院</h3> <p>加入极客学院,学习最新实战教程,全面提升你的技术能力</p> </div> <hr/> <hr/> </div> </div> <div class="footing"> @极客学院 </div> </div> </body> </html>
css代码:
*{ margin:0px; padding:0px; } body{ background-color: snow; } .wrapper{ width:80%; height:1000px; background-color: antiquewhite; margin:0px auto; } .heading{ width:100%; height:160px; background-color: snow; margin:0px auto; } ul{ margin-left:40px; float:left; list-style-type:none; padding-top:40px; padding-bottom:6px; } a:link,a:visited{ font-weight:bold; color:darkgray; text-align:center; padding:6px; text-decoration: none; } a:hover,a:active{ color:blue; } .heading_title{ float:left; font-family:Arial,Helvetica,sans-serif; font-size:30px; color:burlywood; } .heading_nav{ padding-bottom:30px; padding-top:30px; width:100%; height:30px; position:relative; } li{ padding-left:10px; display:inline; } .heading_img img{ border-radius:30px; display:inline; width:46px; height:46px; box-shadow:0 1px 1px rgba(0,0,0,0.2); float:right; } .heading_soptlight form{ float:right; width:100px; height:26px; position:relative; margin-right:82px; margin-top:16px; } form input{ height:26px; border-radius:30px; } .body{ width:auto; height:auto; padding:30px; } .body_title h3{ font-size:30px; font-family:Arial,Helvetical,sans-serif; color:#333333; } .body_title p{ margin-top:20px; margin-bottom:20px; } .footing{ padding-top:20px; text-align:center; fon-size:10px; color:darkgray; }
效果:
相关文章推荐
- HTMl与CSS简单页面页面效果实例
- HTML与CSS简单页面效果实例
- HTML与CSS简单页面效果实例
- HTML与CSS简单页面效果实例
- 使用html+js+css 实现页面轮播图效果(实例讲解)
- CSS基础-37HTML与CSS简单页面效果实例
- 个人简介 - HTML/CSS简单页面实例
- html、css和jquery相结合实现简单的进度条效果实例代码
- Html——简单CSS实例之带数字导航的横幅效果
- html、css和jquery相结合实现简单的进度条效果实例代码
- Html-DW(2)div & css 简单的三栏页面
- bootstartp 简单登陆页面(另成一个html就可以看到效果)
- 用html 和css 写了一个简单的空页面
- HTML+CSS页面滚动效果处理
- 一个小型的网站,比如个人网站,可以使用最简单的html静态页面就实现了,配合一些图片达到美化效果,所有的页面均存放在一个目录下,这样的网站对系统架构、性能的要求都很简单,随着互联网业务的不断丰富,网站
- 从数据库调出数据显示到页面 PHP+Mysql+Html(简单实例)
- 用HTML/JS/PHP方式实现页面延时跳转的简单实例
- 黑马程序员-HTML和CSS结合做的一个计算器的简单页面
- js+html+css简单的互动功能页面(2015知道几乎尖笔试题)http://v.youku.com/v_show/id_XMTI0ODQ5NTAyOA==.html?from=y1.7-1.2
- 如何从数据库调出数据显示到页面 PHP+Mysql+Html(简单实例)