• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

HTML5+CSS3海绵宝宝网站设计1

武飞扬头像
异星球的小怪同志
帮助4

目录

一、作品简介

二、作品思路

三、代码实现(部分)

1.首页部分 

2. 作品介绍

3.网站界面图片 


一、作品简介

因为初学HTML5+CSS3,学的知识还只是皮毛,因此这次的海绵宝宝网站有许多不足的地方,还请大家多多包涵。海绵宝宝网站主要讲了与海绵宝宝的简介,朋友,语录,图集等。

二、作品思路

海绵宝宝网站包括了七个网页,分别是:首页,作品介绍,角色简介,精彩图集,经典语录,个人注册,快速登录,网站的整体结构大方面的结构也就只是三个区域,分别是头部,中部,底部。详细的讲解就是首先是开头的快捷导航栏,其次是导航栏,导航栏主要就是表达网站有七个小页面,方便快速跳转到想要去的页面,接着就是banner设计,可以增加网站视觉效果,也可以更好的突出网站宣传区域,中间就是个整体的大框架,可以添加想要的图片文字等等一系列的效果,最后就是footer底部,这样就是一个完整的网站区域布局。

三、代码实现(部分)

话不多说,直接上部分代码。需要详细代码请私信我~后续还会继续更新的。

1.首页部分 

  1.  
     
  2.  
    <!doctype html>
  3.  
    <html>
  4.  
    <head>
  5.  
    <meta charset="utf-8">
  6.  
    <title>首页</title>
  7.  
    <style type="text/css">
  8.  
    body{margin: 0px;padding: 0px;list-style: none}
  9.  
    div,ul,h1,h3,li,p{margin: 0px;padding:0px;list-style: none}
  10.  
     
  11.  
    body{background: url( "images/sponge.png") no-repeat 0px -100px;background-attachment: fixed}
  12.  
    .w{width:1200px;margin: 0px auto}
  13.  
    .shortcut{background-color:#E2E0E0;width: 100%;height:30px;line-height: 30px}
  14.  
    .shortcut li{float: left}
  15.  
    .fl{float: left}
  16.  
    .style_black{color: black}
  17.  
    .fr{float: right}
  18.  
    .style_red{color: red}
  19.  
    /*所有偶数*/
  20.  
    .shortcut .fr ul li:nth-last-child(even){width: 1px;height: 12px;background-color: darkgray;margin: 9px 15px 0px}
  21.  
    .nav{width: 100%;height: 50px;background-color:antiquewhite}
  22.  
    .nav1{width:1000px;height: 50px;margin: 0px auto;padding-left:30px}
  23.  
    .nav1{width:800px;height: 50px}
  24.  
    .nav1 ul li{float: left;height: 50px;line-height: 50px}
  25.  
    .nav1 ul li a{float: left;text-decoration: none;padding: 0px 20px;color:cornflowerblue;font-weight: 700;font-size:18px}
  26.  
    .nav1 ul li a:hover{background-color: darksalmon}
  27.  
    .header{width: 1200px;height: 600px;margin:30px auto}
  28.  
    .header img{width: 100%;height: 100%}
  29.  
    .big{width: 1200px;margin: 0px auto;overflow: hidden}
  30.  
    .ts{text-align: center;border-bottom: 2px solid #f1f2f3;margin-bottom: 20px}
  31.  
    .box1_content{width: 100%;margin: 10px 0px}
  32.  
    .box1_content_left{float: left;width: 500px}
  33.  
    .box1_content_left p{font-size: 17px;line-height: 32px;color: darkgoldenrod}
  34.  
    .box1_content_right{float: right;width: 680px}
  35.  
    .box1_content_right .right_img_item{width: 100%;text-align: center}
  36.  
    .box1_content_right .right_img_item img{ width:317px;height:300px;margin: 10px}
  37.  
    .footer{width: 100%;height: 50px;background-color:antiquewhite}
  38.  
    h3{line-height: 50px;text-align: center;color: hotpink
学新通

2. 作品介绍

  1.  
    <!doctype html>
  2.  
    <html>
  3.  
    <head>
  4.  
    <meta charset="utf-8">
  5.  
    <title>作品介绍</title>
  6.  
    <style type="text/css">
  7.  
    body{margin: 0px;padding: 0px;list-style: none}
  8.  
    div,ul,h1,h3,h4li,p{margin: 0px;padding:0px;list-style: none}
  9.  
    body{background:url( "images/sponge.png")no-repeat 0px -100px;background-attachment: fixed}
  10.  
    .w{width:1200px;margin: 0px auto}
  11.  
    .shortcut{background-color:#E2E0E0;width: 100%;height:30px;line-height: 30px}
  12.  
    .shortcut li{float: left}
  13.  
    .fl{float: left}
  14.  
    .style_black{color: black}
  15.  
    .fr{float: right}
  16.  
    .style_red{color: red}
  17.  
    /*所有偶数*/
  18.  
    .shortcut .fr ul li:nth-last-child(even){width: 1px;height: 12px;background-color: darkgray;margin: 9px 15px 0px}
  19.  
    .nav{width: 100%;height: 50px;background-color:antiquewhite}
  20.  
    .nav1{width:1000px;height: 50px;margin: 0px auto;padding-left:30px}
  21.  
    .nav1{width:800px;height: 50px}
  22.  
    .nav1 ul li{float: left;height: 50px;line-height: 50px}
  23.  
    .nav1 ul li a{float: left;text-decoration: none;padding: 0px 20px;color:cornflowerblue;font-weight: 700;font-size:18px}
  24.  
    .nav1 ul li a:hover{background-color: darksalmon}
  25.  
    .header{width: 1200px;height: 600px;margin: 30px auto}
  26.  
    .header img{width: 100%;height: 100%}
  27.  
    .center{width: 1200px;margin: 0px auto;overflow: hidden}
  28.  
    .big{width: 1200px;text-align: center;margin: 0px auto; overflow: hidden}
  29.  
    .big img{ width: 260px; height: 250px; margin: 15px;}
  30.  
    .header{width: 1200px;height: 600px;margin: 30px auto}
  31.  
    .header img{width: 100%;height: 100%}
  32.  
    .center{width: 1200px;margin: 0px auto;overflow: hidden}
  33.  
    .big{width: 1200px;text-align:center;margin: 0px auto; overflow: hidden}
  34.  
    .big img{ width: 260px;height: 250px; margin: 15px;}
  35.  
    .bt{ text-align: center;border-bottom: solid 2px #f1f2f3;margin-bottom: 20px;}
  36.  
    .c1{width: 100%;margin: 0 auto;overflow: hidden;}
  37.  
    .c1 .c1_item{float: left}
  38.  
    .c1 .c1_item .line_box{box-sizing: border-box;/*不用加边框和内边距的值*/border-bottom:1px solid #f1f2f5;padding: 15px;font-size: 15px;color:darkgoldenrod;font-weight: 550;}
  39.  
    .c1 .c1_left{width: 380px;margin: 10px;}
  40.  
    .c1 .c1_center{width: 380px;margin: 10px;}
  41.  
    .c1 .c1_right{width: 390px;text-align: center;}
  42.  
    .c1 .c1_right .imgox{margin: 10px 0px;}
  43.  
    .c1 .c1_right img{width: 350px;height: 340px;}
  44.  
    .c2{width: 100%;overflow: hidden;}
  45.  
    .c2 .left_img_{float: left;width: 250px;height: 250px;}
  46.  
    .c2 .left_img_ img{float: left;width: 100%;height: 240px;border-radius: 20px;}
  47.  
    .c2 .right_txtbox{float: right;width: 900px;box-sizing: border-box;line-height: 38px;font-size: 18px;font-weight: 500;padding: 15px;box-sizing: border-box;border:1px solid #f2f3f5;color:darkgoldenrod;}
  48.  
    .footer{width: 100%;height: 50px;background-color:antiquewhite}
  49.  
    h4{line-height: 50px;text-align: center;color:hotpink;font-size: 18px}
  50.  
    </style>
  51.  
    </head>
学新通

3.网站界面图片 

学新通

学新通

学新通 学新通

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhfiabcf
系列文章
更多 icon
同类精品
更多 icon
继续加载