497.大学生HTML期末大作业 —【耍牙传统文化艺术网页(15页)】 Web前端网页制作 html+css

目录

一、网页简介

二、网页文件

三、网页效果

四、代码展示

1.html

2.CSS

五、总结

1.简洁实用

2.使用方便

3.整体性好

4.形象突出

5.交互式强


欢迎来到我的优快云主页!您的支持是我创作的动力!Web前端网页制作、网页完整代码、大学生期末大作业案例模板完整代码、技术交流等,有兴趣的联系我交流学习!更多优质博客文章、网页模板点击以下链接查阅:

仙女网页设计-优快云博客

 5000+网页案例完整代码,主题涵盖30+种类型:


一、网页简介

本实例应用html+css,div+css布局,代码精简,适用于大学生网页课程作业设计;本网页支持如Dreamweaver、HBuilder、Text 、Vscode 等任意html编辑软件进行编辑修改;支持包括IE、Firefox、Chrome、Safari主流浏览器浏览。


二、网页文件

本网页实例共包含15个页面:


三、网页效果

以下是本篇文章正文内容,下面案例仅供参考(节选示例):


四、代码展示

1.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>耍牙首页</title>
<link href="style/style.css" rel="stylesheet" type="text/css">
</head>

<body>
<div class="main">
<div class="top">
<div class="logo">
<img src="images/logo.jpg" />
</div>
<div class="nav">
<ul>
<li><a class="hot" href="index.html">网站首页</a></li>
<li><a href="news.html">耍牙新闻</a></li>
<li><a href="mingduan.html">名段欣赏</a></li>
<li><a href="mingjia.html">耍牙名家</a></li>
<li><a href="baike.html">耍牙百科</a></li>
<li><a href="sousuo.html"><img src="images/sous.jpg" /></a></li>
<li><a href="rongyu.html"><img src="images/ry.jpg" /></a></li>
</ul>
</div>
</div>

<div class="banner">
<img src="images/banner1.jpg" />
</div>

<div class="foot">
<div class="bx1">
<div class="left">选择您的地点</div>
<div class="center">
<img src="images/foot2.png" />
<h2>新闻刊物</h2>
<h3>探索耍牙最新资讯</h3>
<h4>订阅</h4>
</div>
<div class="right">
<div class="tu">
<img src="images/foot3.png" />
<img src="images/foot4.png" />
</div>
<h4>关注我们</h4>
</div>
</div>
<div class="bx2">
<a href="#">400 885 6618</a>
<a href="#">联系我们</a>
<a href="#">使用条款</a>
<a href="#">关于我们</a>
<a href="#">广告联系</a>
<a href="#">意见反馈</a>
<a href="#">版权申明</a>
<a href="#">常见问题</a>
<a href="#">鸣谢</a>
<a href="#">沪ICP备14014303号-4&nbsp;<span class="span1"><img src="images/foot5.png" /></span></a>
<a href="#"><span class="span2"><img src="images/foot6.png" /></span>沪公网安备31010602002427号</a>
</div>
</div>


</div>
</body>
</html>

...

2.CSS

代码如下(节选示例):

@charset "utf-8";
/* CSS Document */
body{ margin:0 auto; font-size:12px; font-family: "微软雅黑"; line-height:22px; background:#d4d1d1;   }

div,p,input,ul,li,p,h1,h2,h3,h4{ height:auto; margin:0;; padding:0; vertical-align:middle ;}

li{ list-style:none;}

a{ text-decoration:none;}

a{ text-decoration:none;}
img{ border:0; margin:0; padding:0;} 
/* 首页 */
.main{ width:1400px; height:auto; overflow:hidden;  margin:0 auto; background:#FFF;}
/*---top开始-----*/
.top{ height:188px;}
.logo{ width: 292px;
height: 93px;
float: left;
margin-top: 51px;
margin-left: 63px;
margin-right: 180px;}
.nav{ width: 850px;
height: 50px;
margin-top: 96px;
float: left;}
.nav li{ height:50px; line-height:50px; margin:0px 20px; float:left;}
.nav li a{ font-size:18px; color:#000;letter-spacing: 6px; }
.nav li a:hover{ color:#d1a856;}
.hot{color:#d1a856 !important;}
.banner{ height:798px;}
/*---foot-----*/
.foot{ height:343px; background:url(../images/foot1.jpg) repeat-x; margin-top:30px;}
.foot .bx1{ height:259px;}
.foot .bx1 .left{ width:219px; height:38px; background:#a2a2a2; line-height:38px; text-align:center; float:left; margin-left:130px; margin-top:187px; font-size:14px; color:#FFF;
}
.foot .bx1 .center{ width:220px; height:259px; float:left; margin-left:248px; text-align:center;}
.foot .bx1 .center img{ display:block; margin:0 auto;}
.foot .bx1 .center h2{ line-height:40px; height:40px; font-size:30px; font-weight:normal;}
.foot .bx1 .center h3{ height:20px; line-height:20px; font-size:14px; font-weight:normal; margin-bottom:15px;}
.foot .bx1 .center h4{background:#a2a2a2; line-height:38px; width:220px; height:38px;font-size:14px; font-weight:normal; color:#FFF;}
.foot .bx1 .right{ width: 220px;
height: 117px;
float: left;
margin-left: 311px;
padding-top: 142px;}
.foot .bx1 .right h2{ font-weight:normal; font-size:16px; height:30px; line-height:30px; margin-top:88px; margin-bottom:10px;}
.foot .bx1 .right .tu{ height:40px;}
.foot .bx1 .right .tu img{ float:left; margin-right:20px;}
.foot .bx1 .right h4 {
    background: #a2a2a2;
line-height: 38px;
width: 220px;
height: 38px;
font-size: 14px;
font-weight: normal;
color:#FFF;
text-align:center;
}
.foot .bx2{ height:60px; line-height:60px; padding:0px 20px;}
.foot .bx2 a{ color:#000; float:left; margin:0px 16px; font-size:14px;}
.foot .bx2 a .span1{padding-top: 15px;

height: 40px;

display: block;

float: right;}
.foot .bx2 a .span2{padding-top: 15px;

height: 40px;

display: block;

float: left;}
.foot .bx2 img{  margin:0px 20px;}
.main{ width:1400px; height:auto; overflow:hidden; background:#FFF;}

/*---新闻中心-----*/
.news{ padding:150px; background:#dbe0e2; padding-top:20px;}
.news .newtit{ height:50px; margin-top:20px; }
.news .newtit h2{ height:50px;  float:left; font-size:34px; font-weight:normal;}
.news .newtit .riqi{ width:350px; float:right; }
.news .newtit .riqi span{ font-size:16px; float:left;  margin-right:10px;}
.slets1{ width:90px; height:30px; float:left; background:#eeeeee; border:none; line-height:30px; padding-left:10px; margin-right:10px;
  /*很关键:将默认的select选择框样式清除*/
  appearance:none;
  -moz-appearance:none;
  -webkit-appearance:none;
 
  /*在选择框的最右侧中间显示小箭头图片*/
  background: url(../images/jiantou.jpg) no-repeat scroll right center transparent;
 
 
  /*为下拉小箭头留出一点位置,避免被文字覆盖*/
  padding-right: 14px;
}
.slets2{ width:60px; height:30px; float:left; background:#eeeeee; line-height:30px; padding-left:10px; margin-right:10px;border:none;
 /*很关键:将默认的select选择框样式清除*/
  appearance:none;
  -moz-appearance:none;
  -webkit-appearance:none;
 
  /*在选择框的最右侧中间显示小箭头图片*/
  background: url(../images/jiantou2.jpg) no-repeat scroll right center transparent;
 
 
  /*为下拉小箭头留出一点位置,避免被文字覆盖*/
  padding-right: 14px;
}
.btn{ width:70px; height:25px; text-align:center; font-size:16px; background:#eeeeee; float:left;border:none;}

.newbx1{ height:435px; width:1100px; margin:0 auto;}
.newbx1 .left{ width:418px; padding-left:40px; height:415px; float:left; background:url(../images/new03.jpg) no-repeat;padding-top: 20px;}
.newbx1 .left .data{ height:30px; font-size:12px; color:#3c3d3d;}
.newbx1 .left .data span{ float:left; margin-right:20px;}
.newbx1 .left img{ float:left;}
.newbx1 .left .titi{ height:50px; margin-bottom:30px; font-size:24px;}
.newbx1 .left p{color: #3c3d3d;
width: 310px;
line-height: 30px;
font-size: 16px;
text-indent:2em;}
.newbx1 .right{ width:436px; height:288px; float:left; margin-left:122px; margin-top:120px;}

.newbx2{ height:500px; width:1100px; margin:0 auto;}
.newbx2 .left{ width:418px; padding-left:40px; height:500px; float:left; padding-top: 20px;}
.newbx2 .left .data{ height:30px; font-size:12px; color:#3c3d3d;}
.newbx2 .left .data span{ float:left; margin-right:20px;}
.newbx2 .left img{ float:left;}
.newbx2 .left .titi{ height:50px; margin-bottom:30px; font-size:24px;}
.newbx2 .left p{color: #3c3d3d;
width: 310px;
line-height: 30px;
font-size: 16px;
text-indent:2em;}
.newbx2 .right{ width:576px; height:376px; float:left; margin-left:10px; margin-top:120px;}

/*---名段欣赏-----*/
.mingduan{ width:1233px; margin:0 auto; }
.mingduan .bx1{ height:313px; background:url(../images/md01.jpg) no-repeat;padding-top:25px; margin-bottom:77px;}
.mingduan .bx1 .jies{ width:380px; height:260px; margin-left:777px;  background:#FFF; text-align:center;}
.mingduan .bx1 .jies h2{ height:45px; padding-top:40px; margin-bottom:20px; font-size:18px;}
.mingduan .bx1 .jies p{ padding:0px 35px; line-height:20px; font-size:12px;}
.mingduan .bx1 .jies .xian{ width:80px; height:15px; border-bottom:#666 1px solid; margin:0 auto;}
.mingduan .bx2{background:url(../images/md02.jpg) no-repeat !important ;}
.mingduan .bx3{background:url(../images/md03.jpg) no-repeat !important ;}
.mingduan .bx2 .jies2{ margin-left:75px !important; margin-top:10x !important;}

/*---耍牙名家-----*/
.sytitle{ height:77px; line-height:77px; font-size:40px; text-align:center; margin-bottom:20px;}
.rup{ width:1304px; height:634px; margin:0 auto;}
.rup img{ float:left;}
/*---叶全民-----*/
.yqm{ width:1100px; height:auto; background:url(../images/new03.jpg) no-repeat; padding:20px;}
.yqm .img1{ float:right; margin-left:60px; margin-bottom:60px;}
.yqm p{ font-size:16px; line-height:35px; text-indent:2em; color:#4d4d4e;}
.yqm .img2{ margin:0 auto; display:block;}
.yqm h2{ height:60px; line-height:60px; margin-top:100px; text-align:right;}

/*---耍牙百科-----*/
.bkbx1{ width:1259px; height:344px;background:url(../images/bk01.png) no-repeat; margin:0 auto;margin-bottom:40px; }
.bkbx1 a{color:#FFF;}
.bkbx1 a:hover{ color:#F00 ;}
.bkbx1 h2{ height:66px; line-height:60px; padding-top:30px; margin-bottom:30px; font-size:40px; font-weight:normal;text-align:center;}
.bkbx1 p{ line-height:35px; font-size:16px;  text-align:center;}
.bkbx1 .duanx{ width:125px; height:25px; margin:0 auto;  margin-top:40px;}

.bkbx2{ width:1259px; height:324px;background:url(../images/bk02.png) no-repeat; margin:0 auto;padding-top:24px;margin-bottom:40px; }
.bkbx2 a{color: #000;}
.bkbx2 a:hover{ color:#F00;}
.bkbx2 .neiw{ width:963px; height:285px; background:#FFF; margin-left:36px; }
.bkbx2 h2{ height:66px; line-height:60px; padding-top:30px; margin-bottom:30px; font-size:40px; font-weight:normal;  text-align:center;}
.bkbx2 p{ line-height:35px; font-size:16px; text-align:center;}
.bkbx2 .duanx{ width:125px; height:25px; margin:0 auto;  margin-top:40px;}


.bkbx3{ width:1259px; height:324px;background:url(../images/bk03.png) no-repeat; margin:0 auto;padding-top:24px;margin-bottom:40px; }
.bkbx3 .neiw{ width:963px; height:285px;  margin-left:380px; }
.bkbx3 h2{ height:66px; line-height:60px; padding-top:30px; margin-bottom:30px; font-size:40px; font-weight:normal;  text-align:center; }
.bkbx3 p{ line-height:35px; font-size:16px; text-align:center;}
.bkbx3 .duanx{ width:125px; height:25px; margin:0 auto;  margin-top:40px;}
.bkbx3 a{color:#FFF;}
.bkbx3 a:hover{ color:#F00;}

/*---耍牙起源-----*/
.qy{ height:1802px; background:url(../images/qy.jpg) no-repeat; position:relative;}
.qy .bx1{ width:177px; height:108px; position:absolute; left:170px; top:30px;}
.qy .bx1 h2{ line-height:50px; height:50px; font-size:26px;font-weight:normal;}
.qy .bx1 h3{ line-height:45px; height:45px; font-size:20px; font-weight: lighter;}
.qy .bx2{ width:351px; height:94px; position:absolute; left:501px; top:466px;}
.qy h4{ height:53px; line-height:53px; font-size:26px; color:#c79813; font-weight:normal; border-bottom:#ececec 1px solid; font-weight:normal;}
.qy p{ height:43px; line-height:43px;font-weight:normal; font-size:14px; background:url(../images/qy01.jpg) no-repeat; padding-left:20px;}

.qy .bx3{ width:417px; height:96px; position:absolute; left:683px; top:992px;}
.qy .bx4{ width:575px; height:106px; position:absolute; left:332px; top:1511px;}

...


五、总结

设计一个样式美观又人性化的网页,除了具备扎实的专业知识,还需具备美学和人机工程学等相关知识,优秀的网页应具备以下几个特点:

1.简洁实用

尽量以最高效率的方式将用户所要想得到的信息传送给他就是最好的,要去掉所有的冗余的东西;

2.使用方便

要满足使用者的要求,网页适合使用,显示出其功能美;

3.整体性好

围绕一个统一的目标设计,强调整体的功能性; 

4.形象突出

尽量符合网页美的标准,能够使网站的形象得到最大限度的提升,追求雅俗共赏。页面用色协调,布局符合形式美的要求:布局有条理,充分利用美的形式,使网页富有可欣赏性,提高档次。

5.交互式强

发挥网络的优势,想方设法使每个使用者都参与到其中来。


更多优质博客文章、完整代码案例模板,点击以下链接查阅:

仙女网页设计-优快云博客

Web前端网页制作、大学生期末大作业、课程设计、毕业设计、完整代码案例模板、Web前端网页定制、教学课程、学习资料等,有需要的添加以下微信交流👇🏻👇🏻👇🏻


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值