104. 大学生HTML期末大作业 ―【豪华汽车网页】 Web前端网页制作 html+css+js

目录

一、更多推荐

二、网页简介

三、网页文件

四、网页效果

五、代码展示

1.html

2.CSS

六、总结

1.简洁实用

2.使用方便

3.整体性好

4.形象突出

5.交互式强

七、更多推荐


一、更多推荐

欢迎来到我的CSDN主页!Web前端网页制作、学生期末大作业、课程设计、毕业设计、网页模版源码、学习资料等,更多优质博客文章、网页模板点击以下链接查阅:

仙女网页设计-CSDN博客

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


二、网页简介

本实例应用html+css: 菜单栏、二级菜单、欢迎弹窗、鼠标悬停图片切换效果、留言表单等。适用于大学生网页课程作业设计。本网页支持如Dreamweaver、HBuilder、Text 、Vscode 等任意html编辑软件进行编辑修改;支持包括IE、Firefox、Chrome、Safari主流浏览器浏览。


三、网页文件

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


四、网页效果

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


五、代码展示

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="css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_popupMsg(msg) { //v1.0
  alert(msg);
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
</script>
<bgsound src="music/zcys.mp3" loop="-1"/></head>


<body οnlοad="MM_preloadImages('images/0H45GQ1-0.jpg');MM_popupMsg('欢迎光临!');MM_openBrWindow('5.html','','toolbar=yes,width=500,height=500')">

<div>
  <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td align="center"><img src="images/logo.jpg" width="960" height="120" /></td>
    </tr>
  </table>
</div>
<div>
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="30" align="center" bgcolor="#0099CC"><a href="index.html"><img src="images/11.png" width="129" height="25" border="0" /></a></td>
      <td align="center" bgcolor="#0099CC"><a href="1.html"><img src="images/12.png" width="129" height="25" border="0"/></a></td>
      <td align="center" bgcolor="#0099CC"><a href="2.html"><img src="images/16.png" width="129" height="25" border="0"/></a></td>
      <td align="center" bgcolor="#0099CC"><a href="3.html"><img src="images/14.png" width="129" height="25" border="0"/></a></td>
      <td align="center" bgcolor="#0099CC"><a href="4.html"><img src="images/13.png" width="129" height="25" border="0"/></a></td>
      <td align="center" bgcolor="#0099CC"><a href="5.html"><img src="images/15.png" width="129" height="25" border="0"/></a></td>
<td align="center" bgcolor="#0099CC"><a href="biaodan.html"><img src="images/17.png" width="129" height="25" border="0"/></a></td>
    </tr>
  </table>
</div><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="25%" valign="top"><table width="90%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="30" align="left"><p><br />
          <a href="#">黄金跑车</a></p>
          <p><a href="#">劳斯莱斯</a></p>
          <p><a href="#">兰博基尼爱玛仕</a></p>
          <p><a href="#">奥迪派克峰</a></p>
          <p><a href="#">法拉利250</a></p>
          <p><a href="#">.雪铁龙C-Metisse</a></p>
          <p><a href="#">阿斯顿·马丁one-77</a></p>
          <p><a href="#">柯尼塞格CCXR 4.8T Trevita</a></p>
          <p><a href="#">布加迪威龙Gransports</a></p>
          <p><a href="#">柯尼塞格Agera 5.0T R</a></p>
          <p><a href="#">柯尼塞格CCXR 4.7T Edition </a></p>
          <p><a href="#">布加迪威龙标准版</a></p>
          <p><a href="#">柯尼塞格CCX 4.7T基本型</a></p>
          <p><a href="#">帕加尼Huayra标准版</a></p>
          <p><a href="#">帕加尼Zonda F</a></p></td>
      </tr>
    </table></td>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><br />          <a href="#" οnmοuseοut="MM_swapImgRestore()" οnmοuseοver="MM_swapImage('Image9','','images/0H45GQ1-0.jpg',1)"><img src="images/6cb2b120xae3266136642%26690.jpg" name="Image9" width="670" height="502" border="0" id="Image9" /></a><br />
        <br />        
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;豪华车是英文Luxury Cars或Limousine的直译,通常指D级车。D级车轴距一般在3000mm以上;发动机排量大于3.0升。比较常见的D级豪华车有:奔驰S级、宝马7系、奥迪A8、雷克萨斯LS、捷豹XJ等等。而超级豪华车系列,价格应该在12万英镑以上,也就是在20万-30万美元以上,换算成人民币,都是200万以上的车,例如奔驰S65 AMG、宝马760、奥迪A8L W12、迈巴赫齐柏林、劳斯莱斯幻影、但现在豪华车的具体概念已越来越模糊,很多人认为只要是豪华品牌生产的车型就是豪华车。<br />
          <br /></td>
      </tr>
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>        </tr>
      </table></td>
  </tr>
</table>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30" align="center">&copy; <a href="index.html">豪华汽车网</a>  &nbsp;<a href="map.html">网站地图</a> </td>
  </tr>
</table>
</body>
</html>

...

2.CSS

代码如下(节选示例):

body {
    background-image: url(images/body2.gif);
    background-repeat: repeat-x;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
body,td,th {
    font-size: 14px;
    color: #666;
}
#apDiv1 {
    position:absolute;
    width:200px;
    height:115px;
    z-index:1;
}
a:link {
    color: #F90;
    text-decoration: none;
}
a:visited {
    text-decoration: none;
    color: #F90;
}
a:hover {
    text-decoration: none;
    color: #30F;
}
a:active {
    text-decoration: none;
    color: #F90;
}
#apDiv2 {
    position:absolute;
    width:925px;
    height:16px;
    z-index:1;
    left: 136px;
    top: 712px;
}
bbb {
    font-size: 12px;
}

.sitemap-item
{
    overflow:hidden;
    font-size:14px;
}

.sitemap-item h2
{
    height:40px;
    line-height:40px;
    overflow:hidden;
    font-size:16px;
    font-weight:700;
    font-family:"Microsoft Yahei";
    border-bottom:1px solid #f0f0f0;
    background-color:#fcfcfc;
    padding:0 15px;
}

...


六、总结

一个优秀的网页应具备以下几个特点:

1.简洁实用

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

2.使用方便

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

3.整体性好

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

4.形象突出

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

5.交互式强

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


七、更多推荐

关注作者|获取更多源码|优质文章】;Web前端网页制作、大学生毕业设计辅导、期末大作业辅导、模板源码、技术咨询,有兴趣的联系我!

您的支持是我创作的动力!看到这里就【点赞收藏博文】,Thanks!

更多优质博客文章、网页模板点击以下链接查阅:仙女网页设计-CSDN博客


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值