692. 大学生HTML期末大作业 ―【Bootstrap红色的机械设备网页首页 (1页)】 Web前端网页制作 html5+css3+js
目录
欢迎来到我的CSDN主页!您的支持是我创作的动力!Web前端网页制作、网页完整代码、大学生期末大作业案例模板完整代码、技术交流等,有兴趣的联系我交流学习!更多优质博客文章、网页模板点击以下链接查阅:全网最全的的网页案例集合,5000+套网页完整代码,主题涵盖40+种类型,网页案例持续更新中,需要的文章末尾添加我微信...
【建议收藏】40种主题网页案例大集合 Web前端 大学生期末大作业 HTML+CSS+JS-CSDN博客

一、网页简介
本实例应用html5+css3+js: Bootstrap、jQuery动画特效、图片轮翻、无缝滚动插件、鼠标滑动特效等。响应式自适应网页,可以根据不同的设备屏幕大小自动调整页面布局,提高用户体验;本网页支持如Dreamweaver、HBuilder、Text 、Vscode 等任意html编辑软件进行编辑修改;支持包括IE、Firefox、Chrome、Safari主流浏览器浏览。
二、网页文件
本网页共包含1个页面:

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




四、代码展示
1.html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<title>响应式压缩干燥机设备类网站模板(自适应手机端)</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<!-- Bootstrap -->
<link href="skin/css/bootstrap.min.css" tppabs="http://localhost:8888/skin/css/bootstrap.min.css" rel="stylesheet">
<link href="skin/css/global.css" tppabs="http://localhost:8888/skin/css/global.css" rel="stylesheet">
<script src="skin/js/shover.min.js" tppabs="http://localhost:8888/skin/js/shover.min.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="..//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js" tppabs="http:///cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="..//cdn.bootcss.com/respond.js/1.4.2/respond.min.js" tppabs="http:///cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style></style>
</head>
<body>
<div class="pctop1">
<div class="pctop1_nei">
<div class="fl pctop1_left pc">欢迎光临某某压缩机设备有限公司</div>
<!--<div class="fr pctop1_right">
<div class="bdsharebuttonbox"> <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信" style="background:url(skin/images/bg1.png) no-repeat 50%;"></a> <a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友" style="background:url(skin/images/bg2.png) no-repeat 50%;"></a> <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博" style="background:url(skin/images/bg3.png) no-repeat 50%;"></a> <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间" style="background:url(/skin/images/bg4.png) no-repeat 50%;"></a> </div>
<!--<div class="lang"> <a href="/" class="fl"><img src="/skin/images/bg5.png"></a> <a href="/en" class="fl"><img src="/skin/images/bg6.png"></a> </div>-->
</div>
--> </div>
</div>
<div class="pcto pc">
<div class="pcto_box pc"> <a href="index.htm" tppabs="http://localhost:8888/" class="fl pcto_logo"><img src="skin/images/bg7.png" tppabs="http://localhost:8888/skin/images/bg7.png"></a>
<div class="pcto_menu">
<div class="pcto_menu_xun"> <a href="index.htm" tppabs="http://localhost:8888/" class="pcto_menu_a">网站首页</a> </div>
<div class="pcto_menu_xun yxl "> <a href="a/about/gongsijianjie/index.htm" tppabs="http://localhost:8888/a/about/gongsijianjie/" class="pcto_menu_a">关于我们</a>
<div class="pcto_xl"> <a href="a/about/gongsijianjie/index.htm" tppabs="http://localhost:8888/a/about/gongsijianjie/">公司简介</a> <a href="a/about/gongsizizhi/index.htm" tppabs="http://localhost:8888/a/about/gongsizizhi/">公司资质</a> </div>
<div class="pcto_bg"></div>
</div><div class="pcto_menu_xun yxl "> <a href="a/products/index.htm" tppabs="http://localhost:8888/a/products/" class="pcto_menu_a">产品中心</a>
<div class="pcto_xl"> <a href="a/products/lm1/index.htm" tppabs="http://localhost:8888/a/products/lm1/">空气压缩机</a> <a href="a/products/lm2/index.htm" tppabs="http://localhost:8888/a/products/lm2/">冷冻式干燥机</a> <a href="a/products/lm3/index.htm" tppabs="http://localhost:8888/a/products/lm3/">吸附式干燥机</a> <a href="a/products/lm4/index.htm" tppabs="http://localhost:8888/a/products/lm4/">空气系统产品</a> </div>
<div class="pcto_bg"></div>
</div><div class="pcto_menu_xun yxl "> <a href="a/jishu/index.htm" tppabs="http://localhost:8888/a/jishu/" class="pcto_menu_a">技术优势</a>
<div class="pcto_xl"> <a href="a/jishu/jichuzhishi/index.htm" tppabs="http://localhost:8888/a/jishu/jichuzhishi/">基础知识</a> <a href="a/jishu/guzhangchuli/index.htm" tppabs="http://localhost:8888/a/jishu/guzhangchuli/">故障处理</a> <a href="a/jishu/weihubaoyang/index.htm" tppabs="http://localhost:8888/a/jishu/weihubaoyang/">维护保养</a> <a href="a/jishu/ziliaowendang/index.htm" tppabs="http://localhost:8888/a/jishu/ziliaowendang/">资料文档</a> </div>
<div class="pcto_bg"></div>
</div><div class="pcto_menu_xun yxl "> <a href="a/news/index.htm" tppabs="http://localhost:8888/a/news/" class="pcto_menu_a">新闻动态</a>
<div class="pcto_xl"> <a href="a/news/gongsixinwen/index.htm" tppabs="http://localhost:8888/a/news/gongsixinwen/">公司新闻</a> <a href="a/news/xingyexinwen/index.htm" tppabs="http://localhost:8888/a/news/xingyexinwen/">行业新闻</a> </div>
<div class="pcto_bg"></div>
</div><div class="pcto_menu_xun yxl "> <a href="a/job/index.htm" tppabs="http://localhost:8888/a/job/" class="pcto_menu_a">人才招聘</a>
<div class="pcto_xl"> </div>
<div class="pcto_bg"></div>
</div><div class="pcto_menu_xun yxl "> <a href="a/contact/index.htm" tppabs="http://localhost:8888/a/contact/" class="pcto_menu_a">联系我们</a>
<div class="pcto_xl"> </div>
<div class="pcto_bg"></div>
</div> </div>
</div>
</div>
...
2.CSS
代码如下(节选示例):
@charset "utf-8";
/* CSS Document */
body {
margin: 0px;
padding: 0px;
border: 0px;
font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei";
color: #333333;
font-size: 14px;
width: 100%;
background: #ffffff;
}
a {
margin: 0px;
padding: 0px;
border: 0px;
text-decoration: none;
color: #333333;
font-size: 13px;
}
a:hover {
text-decoration: none !important;
}
* {
padding: 0px;
margin: 0px;
border: 0px;
}/* background:rgba(0,0,0,0);filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#7F000000,endcolorstr=#7F000000);*/
li {
list-style: none;
}
.clear {
clear: both !important;
height: 0px !important;
width: 0px !important;
float: none !important;
margin: 0px !important;
padding: 0px !important;
border: 0px !important;
}
textarea:focus {
outline: none;
}
input:focus {
outline: none;
}
input:focus {
outline: none;
}/*去除按钮选中的高亮标签*/
img {
max-width: 100% !important;
}
div, p, table, td, ul, li, span, a, ol, input {
padding: 0px;
margin: 0px;
border: 0px;
}
input::-ms-input-placeholder { /* Internet Explorer 10+ */
color:#4d4d4d;
font-size:14px;
}
input::-webkit-input-placeholder { /* WebKit browsers */
color:#4d4d4d;
font-size:14px;
}
input::-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color:#4d4d4d;
font-size:14px;
}
input::-moz-placeholder { /* Mozilla Firefox 19+ */
color:#4d4d4d;
font-size:14px;
}
...
3.JS
代码如下(节选示例):
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under the MIT license
*/
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.5",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.5",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.5",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find("http://localhost:8888/skin/js/.next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d)
...
五、总结
设计一个样式美观又人性化的网页,除了具备扎实的专业知识,还需具备美学和人机工程学等相关知识,优秀的网页应具备以下几个特点:
1.简洁实用
尽量以最高效率的方式将用户所要想得到的信息传送给他就是最好的,要去掉所有的冗余的东西;
2.使用方便
要满足使用者的要求,网页适合使用,显示出其功能美;
3.整体性好
围绕一个统一的目标设计,强调整体的功能性;
4.形象突出
尽量符合网页美的标准,能够使网站的形象得到最大限度的提升,追求雅俗共赏。页面用色协调,布局符合形式美的要求:布局有条理,充分利用美的形式,使网页富有可欣赏性,提高档次。
5.交互式强
发挥网络的优势,想方设法使每个使用者都参与到其中来。
六、更多推荐
更多优质博客文章、完整代码案例模板,点击以下链接查阅:
Web前端网页制作、大学生期末大作业、课程设计、毕业设计、完整代码案例模板、Web前端网页定制、教学课程、学习资料等,有需要的添加以下微信交流👇🏻👇🏻👇🏻
更多推荐
所有评论(0)