目录
♬♬♬欢迎光临我的CSDN!这里是Web前端网页案例大集汇,有各行各业的前端网页案例,每天会持续更新!如果你对Web前端网页的学习、开发有困惑,抑或是为Web前端网页期末大作业、课设毕设烦恼,在我这可以提供专业的解决方案,☎☏有兴趣的欢迎联系交流!请点赞关注,谢谢!❤❤❤更多网页案例推荐:
一、网页概述
本实例应用html+css,div+css布局,代码简单,适用于大学生网页课程作业设计、公司网页制作等。本网页支持如Dreamweaver、HBuilder、Text 、Vscode 等任意html编辑软件进行编辑修改;支持包括IE、Firefox、Chrome、Safari主流浏览器浏览。
二、网页文件
本网页共包含6个页面:
三、网页效果
以下是本篇文章正文内容,下面案例仅供参考(节选示例):
四、代码展示
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"><!-- InstanceBegin template="/Templates/tp.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>无标题文档</title>
<!-- InstanceEndEditable -->
<link href="style/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="head">
<div id="logo"><img src="images/logo.jpg" width="239" height="146" alt="logo" /></div>
<div id="back">
<table width="240" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="96">设为首页|</td>
<td width="96">加入收藏|</td>
<td width="96">联系我们</td>
</tr>
</table>
</div>
<div id="nav">
<ul>
<li class="first"><a href="index.html">首 页</a></li>
<li><a href="nowfood.html">当季美食</a></li>
<li><a href="vall.html">菜谱大全</a></li>
<li><a href="yinyang.html">营养饮食</a></li>
<li ><a href="1.html">食尚社区</a></li>
</ul>
<a href="#">登陆</a>|<a href="zhuce.html">注册</a></div>
</div>
<!-- InstanceBeginEditable name="head" -->
<div id="mian">
<div id="left">
<div id="jies">生活中注意的饮食健康</div>
<img src="images/21.jpg" width="211" height="320" /><img src="images/22.jpg" width="205" height="330" /></div>
<div id="middle"><img src="images/333.jpg" width="540" height="684" /></div>
<div id="right"><img src="images/22.jpg" width="203" height="332" /><img src="images/26.jpg" width="203" height="351" /></div>
</div>
<!-- InstanceEndEditable -->
<div id="footer">
版权所有|主页 |联系我们| 邮箱地址
</div>
</body>
<!-- InstanceEnd --></html>
...
2.CSS
代码如下(节选示例):
body {
margin: 0px;
padding: 0px;
background-color: #FFF;
}
#head {
height: 146px;
width: 966px;
margin-right: auto;
margin-left: auto;
margin-bottom: 0px;
background-color: #BF2C0A;
}
#mian {
width: 964px;
height: 700px;
margin-right: auto;
margin-left: auto;
margin-top: 4px;
background-color: #FFF;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #CCC;
border-left-width: 1px;
border-left-style: solid;
border-left-color: #CCC;
}
#footer {
width: 964px;
margin-right: auto;
margin-left: auto;
height: 40px;
text-align: center;
padding-top: 10px;
color: #FFF;
letter-spacing: 2px;
background-image: url(../images/footer.jpg);
}
#head #logo {
height: 145px;
width: 240px;
float: left;
}
#head #back {
float: left;
width: 725px;
height: 98px;
background-image: url(../images/head1.jpg);
background-repeat: repeat;
margin-bottom: 0px;
}
#head #nav {
float: left;
width: 726px;
background-color: #ed6857;
background-image: url(../images/nav.jpg);
background-repeat: repeat-x;
line-height: 47px;
font-size: 12px;
color: #FFF;
height: 47px;
overflow: hidden;
}
#head #nav ul {
height: 45px;
float: left;
margin-top: 0px;
background-image: url(../images/nav.jpg);
background-repeat: repeat-x;
width: 609px;
background-color: #ed6857;
}
#head #back table {
float: right;
margin-top: 50px;
color: #910000;
}
#head #nav ul li {
float: left;
width: 110px;
list-style-type: none;
height: 45px;
line-height: 45px;
text-align: center;
background-image: url(../images/nav.jpg);
background-repeat: repeat-x;
margin-left: 1px;
color: #FFF;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #FFF;
font-size: 14px;
margin-top: 2px;
}
#head #nav a {
color: #FFF;
text-decoration: none;
}
#head #nav a:hover {
color: #F00;
text-decoration: underline;
}
...
五、总结
设计一个样式美观又人性化的网页,除了具备扎实的专业知识,还需具备美学和人机工程学等相关知识,优秀的网页应具备以下几个特点:
1.简洁实用
尽量以最高效率的方式将用户所要想得到的信息传送给他就是最好的,要去掉所有的冗余的东西;
2.使用方便
要满足使用者的要求,网页适合使用,显示出其功能美;
3.整体性好
围绕一个统一的目标设计,强调整体的功能性;
4.形象突出
尽量符合网页美的标准,能够使网站的形象得到最大限度的提升,追求雅俗共赏。页面用色协调,布局符合形式美的要求:布局有条理,充分利用美的形式,使网页富有可欣赏性,提高档次。
5.交互式强
发挥网络的优势,想方设法使每个使用者都参与到其中来。
六、更多推荐
【关注作者|获取更多源码|优质文章】;Web前端网页制作、大学生毕业设计辅导、期末大作业辅导、模板源码、技术咨询等,有兴趣的联系我!
更多优质博客文章、网页模板点击以下链接查阅: