目录
欢迎光临仙女的网页世界!这里有各行各业的Web前端网页制作的案例,样式齐全新颖,并持续更新!感谢CSDN,提供了这么好的知识学习、技术交流的平台,让我们在这里相遇,小伙伴们,来吧,让我们一起开启Web前端网页制作的奇妙之旅!
说起Web前端,大学开启这扇技术之门以来,一切起始于兴趣爱好和专业钻研。自16年中大研究生毕业步入社会工作以来,才真正开启了这段奇妙的旅行!在一次次需求分析、成品交付和客户服务的过程中,进行了一次又一次的知识应用的实践和验证。学以致用,实践出真知!从最初的Web前端的迷途小书童到如今的技术专家,多年的服务客户和服务大学生的实践经验,早就驾轻就熟!
奇妙之处在于:当你得到客户的认可、公司的赞赏和同事的敬仰,尤其是业余时间为广大的大学生提供各种各样的帮助和指引,学弟学妹们一致好评,认为学姐是他们的榜样的时候,你会发现,知识的应用除了体现自身价值,还能实现自我满足!这种感觉是相当奇妙的!
我在CSDN的奇妙旅行,除了学习其他知识和持续发布优质的网页实例之外,后续时间允许的情况下,我会发布前端相关知识的学习和应用的教程。目前提供的服务类型包括:Web前端网页制作的专题研究辅导、网页定制、大学生课程作业辅导、毕设辅导、网页模板源码、教程资料、技术咨询,以及其他有偿或无偿的服务。如有需要,欢迎随时咨询!能满足你们所需,是我的荣幸!
非常感谢大家的关注和点赞,你们的关注和点赞是我持续创作的动力,谢谢!
一、网页概述
本实例应用html+css+js: 导航菜单、图片轮翻、三级页面、下拉菜单、无缝滚动插件、鼠标滑动特效等。本网页支持如Dreamweaver、HBuilder、Text 、Vscode 等任意html编辑软件进行编辑修改;支持包括IE、Firefox、Chrome、Safari主流浏览器浏览。
二、网页文件
本网页共包含17个页面:
三、网页效果
以下是本篇文章正文内容,下面案例仅供参考(节选示例):
四、代码展示
1.html
<html xmlns="http://www.w3.org/1999/xhtml" style="overflow-y: hidden;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<meta name="renderer" content="webkit" />
<title>白色简洁大气网络公司网站模板_网站模板_js代码</title>
<meta name="keywords" content="扁平化设计网页模板,网络公司网站模板" />
<meta name="description" content="白色简洁大气网络公司网站模板。" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/css.css" />
<link rel="stylesheet" href="css/page.css" />
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/16sucai.js" type="text/javascript"></script>
<script src="js/umxTool.js" type="text/javascript"></script>
<script src="js/jquery.imgpreload.min.js" type="text/javascript"></script>
<script src="js/TweenMax.min.js" type="text/javascript"></script>
<script src="js/page.js" type="text/javascript"></script>
<script src="js/jquery.themepunch.revolution.min.js" type="text/javascript"></script>
<script src="js/zzsc.js" type="text/javascript"></script>
<script>
$(document).ready(function() {
if ($.fn.cssOriginal != undefined) $.fn.css = $.fn.cssOriginal;
$('.wide-banner').revolution({
delay: 7000,
startheight: 500,
startwidth: 1000,
hideThumbs: 200,
thumbWidth: 100,
// Thumb With and Height and Amount (only if navigation Tyope set to thumb !)
thumbHeight: 50,
thumbAmount: 5,
navigationType: "bullet",
// bullet, thumb, none
navigationArrows: "verticalcentered",
// nexttobullets, solo (old name verticalcentered), none
navigationStyle: "round",
// round,square,navbar,round-old,square-old,navbar-old, or any from the list in the docu (choose between 50+ different item), custom
navigationHAlign: "center",
// Vertical Align top,center,bottom
navigationVAlign: "bottom",
// Horizontal Align left,center,right
navigationHOffset: 0,
navigationVOffset: 20,
soloArrowLeftHalign: "left",
soloArrowLeftValign: "center",
soloArrowLeftHOffset: 20,
soloArrowLeftVOffset: 0,
soloArrowRightHalign: "right",
soloArrowRightValign: "center",
soloArrowRightHOffset: 20,
soloArrowRightVOffset: 0,
touchenabled: "on",
// Enable Swipe Function : on/off
onHoverStop: "on",
// Stop Banner Timet at Hover on Slide on/off
stopAtSlide: -1,
// Stop Timer if Slide "x" has been Reached. If stopAfterLoops set to 0, then it stops already in the first Loop at slide X which defined. -1 means do not stop at any slide. stopAfterLoops has no sinn in this case.
stopAfterLoops: -1,
// Stop Timer if All slides has been played "x" times. IT will stop at THe slide which is defined via stopAtSlide:x, if set to -1 slide never stop automatic
hideCaptionAtLimit: 0,
// It Defines if a caption should be shown under a Screen Resolution ( Basod on The Width of Browser)
hideAllCaptionAtLilmit: 0,
// Hide all The Captions if Width of Browser is less then this value
hideSliderAtLimit: 0,
// Hide the whole slider, and stop also functions if Width of Browser is less than this value
shadow: 0,
//0 = no Shadow, 1,2,3 = 3 Different Art of Shadows (No Shadow in Fullwidth Version !)
fullWidth: "on" // Turns On or Off the Fullwidth Image Centering in FullWidth Modus
})
var bAnimateStop = 1;
$(window).scroll(function(){
if(clientShow ('.h-service')){
$('.h-service .bd .service-list li').addClass('animation');
}
if(clientShow('.move-mod') && bAnimateStop === 1){
$('.case-slider').umxCaseSlider();
bAnimateStop = 2;
}
if(clientShow('.h-mission')){
$('.h-mission .bd').addClass('scale-animate');
}
});
$('#header').fixedNav();
$('.h-client .bd').scrollSlider();
});
</script>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
</head>
<body>
<div id="loader" style="display: none;">
</div>
<!--头部-->
<div class="header">
<div class="header_bar">
<h1 class="logo"> <a href="index.html"><img src="images/logo.png" title="昆明创意网站建设" alt="首页" /></a> </h1>
<ul id="social" class="social">
<li class="slist"> <a class="sfocus" href="javascript:void(0);">Tel:0871-6852 8850</a> </li>
<li class="slist"> <a class="sfocus" href="/contents/">联系方式</a>
<div class="sqrcode_wrap">
<a class="sqrcode" href="javascript:void(0);"><img src="images/2014751032863.png" title="昆明创意二维码" alt="昆明创意二维码" /></a>
<a class="slink" href="/contents/">查看联系方式</a>
</div> </li>
</ul>
</div>
...
2.CSS
代码如下(节选示例):
html{overflow-y:scroll;_background-image:url(about:blank);_background-attachment:fixed;_overflow-x:hidden;overflow-x:hidden;}
body{overflow-x: hidden;min-width:1100px;}
*{
padding: 0;
margin: 0;
font-size:13px;
font-family: "微软雅黑";
}
input,button,select,textarea{outline:none}
li{
list-style:none;
}
a{
text-decoration:none;
color:#999999
}
a:hover{
color:#0195D3
}
img{
border:0
}
.collb_lb p {
line-height: 25px;
margin: 15px 10px;
}
.qqkefu{
position: fixed;
bottom:40%;
_position: absolute;
_top: expression(eval(document.documentElement.scrollTop + 365));
z-index: 20;
right:0;
width:45px
}
.qqkefu ul li{
height:45px;
margin-bottom:1px;
float:right;
background:#1b1b1d;
line-height:35px;
font-size:14px;
cursor:pointer;
position:relative
}
.qqkefu ul li a{
color:#fff;
}
.qqkefu ul li.qq_cza{
overflow:hidden
}
.qqkefu ul li:hover{
background:#c9112c;
}
.qqkefu ul li.top{
color:#1c1c1c;
font-weight:800;
text-align:center;
line-height:45px;
background:#ffffff;
position:relative;
width:45px;
cursor:pointer
}
.qqkefu ul li.top span{
position:absolute;
display:block;
left:0;
top:-5px;
height:5px;
width:45px;
background:url(../images/czx2.png) no-repeat center;}
.qqkefu ul li.top:hover{
background:#CBCBCB}
.qqkefu ul li.top:hover span{
background:url(../images/czx2_hover.png) no-repeat center}
.qqkefu ul li b{
width:45px;
height:45px;
display:block;
overflow:hidden;
float:left}
.qqkefu ul li b.a{
background:url(../images/czx4.png) no-repeat center center;
}
.qqkefu ul li b.b{
background:url(../images/czx3.png) no-repeat center center;
}
.qqkefu ul li b.c{
background:url(../images/czx5.png) no-repeat center center;
}
.qqkefu ul li b.lxb{
background:url(../images/phone0.png) no-repeat center center;
}
.erweima{
/*width: 390px;*/
height: 150px;
position: absolute;
top: -107px;
left: -265px;
background: #FFF;
border: 1px solid #CCC;
float: right;
cursor: default !important;
display:none
}
...
3.JS
代码如下(节选示例):
/**
* Created by UMEIXUN.COM on 14-5-18.
*/
$(document).ready(function() {
//menu
$("#menu a").hover(function() {
$(this).find("p").stop().animate({
marginTop: "-20"
}, 200);
},function() {
$(this).find("p").stop().animate({
marginTop: "0"
}, 200);
if( $(this).hasClass("current") ){
$(this).find("p").stop().animate({
marginTop: "-20"
}, 200);
}
});
});
(function($){
$.fn.umxCaseSlider = function (options){
This = $(this);
var defaults = {
mainCell: '.case-list li',
vis: 4,
next:'.next',
prev: '.preve'
};
var opts = $.extend({},defaults, options);
var moveEle = This.find(opts.mainCell);
var vis = opts.vis;
var visLen = 0;
var oNext = This.find(opts.next);
console.log(oNext);
var oPrev = This.find(opts.prev);
var height = 295;
var len = moveEle.length;
var leftArr = [];
var arrNum = 0;
var num = 0;
var bStop = false;
var timerNum = 0;
var timerNumLen = 4;
var timer = null;
//给移动元素的父级中相对定位
moveEle.parent().css({position: 'relative', height: height});
// 存位置
for(var i = 0;i<vis;i++){
leftArr.push(i*(moveEle.width()+parseInt(moveEle.css("margin-right"))));
}
//将要动要元素转成绝对定拉
moveEle.css({position: 'absolute', left: -300, top: -300, opacity: 0});
timer = setInterval(function(){
timerNum++;
moveEle.eq(num).animate({opacity: 1, top:0,left:leftArr[arrNum]},{queue:true,duration:1000, easing: 'easeOutBounce'});
arrNum++;
if(timerNum >= timerNumLen){
clearInterval(timer);
arrNum = 0;
timerNum = 0;
}
num++;
},200);
oNext.on('click', function(){
if(bStop){ return false;}
bStop = true;
moveEle.each(function(){
if(Math.abs(Math.floor($(this).css('left'))) != 300){
$(this).animate({ opacity: 0, left: -300, top: -300},{
queue:true,
duration:1000,
easing: 'easeInBack'
})
}
});
setTimeout(function(){
moveEle.css({opacity:0})
timer = setInterval(function(){
timerNum++;
moveEle.eq(num).animate({opacity: 1, top:0,left:leftArr[arrNum]},{queue:true,duration:1000, easing: 'easeInOutBack'});
num++;
arrNum++;
if(timerNum >= timerNumLen){
clearInterval(timer);
bStop = false;
arrNum = 0;
timerNum = 0;
if(num>=len-1){
num = 0;
}
}
console.log(num)
},200);
},1000);
});
...
五、总结
设计一个样式美观又人性化的网页,除了具备扎实的专业知识,还需具备美学和人机工程学等相关知识,优秀的网页应具备以下几个特点:
1.简洁实用
尽量以最高效率的方式将用户所要想得到的信息传送给他就是最好的,要去掉所有的冗余的东西;
2.使用方便
要满足使用者的要求,网页适合使用,显示出其功能美;
3.整体性好
围绕一个统一的目标设计,强调整体的功能性;
4.形象突出
尽量符合网页美的标准,能够使网站的形象得到最大限度的提升,追求雅俗共赏。页面用色协调,布局符合形式美的要求:布局有条理,充分利用美的形式,使网页富有可欣赏性,提高档次。
5.交互式强
发挥网络的优势,想方设法使每个使用者都参与到其中来。
六、更多推荐
【关注作者|获取更多源码|优质文章】;Web前端网页制作、大学生毕业设计辅导、期末大作业辅导、模板源码、技术咨询等,有兴趣的联系我!
更多优质博客文章、网页模板点击以下链接查阅:
关注作者,点赞收藏博文,获取更多源码,Thanks!5000+完整代码,主题涵盖30+种类型:
大学生期末大作业、课程设计、毕业设计、完整代码案例模板、Web前端网页定制、教学课程、学习资料等,有兴趣的添加以下微信交流👇🏻👇🏻👇🏻