目录
欢迎光临仙女的网页世界!这里有各行各业的Web前端网页制作的案例,样式齐全新颖,并持续更新!感谢CSDN,提供了这么好的知识学习、技术交流的平台,让我们在这里相遇,小伙伴们,来吧,让我们一起开启Web前端网页制作的奇妙之旅!
说起Web前端,大学开启这扇技术之门以来,一切起始于兴趣爱好和专业钻研。自16年中大研究生毕业步入社会工作以来,才真正开启了这段奇妙的旅行!在一次次需求分析、成品交付和客户服务的过程中,进行了一次又一次的知识应用的实践和验证。学以致用,实践出真知!从最初的Web前端的迷途小书童到如今的技术专家,多年的服务客户和服务大学生的实践经验,早就驾轻就熟!
奇妙之处在于:当你得到客户的认可、公司的赞赏和同事的敬仰,尤其是业余时间为广大的大学生提供各种各样的帮助和指引,学弟学妹们一致好评,认为学姐是他们的榜样的时候,你会发现,知识的应用除了体现自身价值,还能实现自我满足!这种感觉是相当奇妙的!
我在CSDN的奇妙旅行,除了学习其他知识和持续发布优质的网页实例之外,后续时间允许的情况下,我会发布前端相关知识的学习和应用的教程。目前提供的服务类型包括:Web前端网页制作的专题研究辅导、网页定制、大学生课程作业辅导、毕设辅导、网页模板源码、教程资料、技术咨询,以及其他有偿或无偿的服务。如有需要,欢迎随时咨询!能满足你们所需,是我的荣幸!
非常感谢大家的关注和点赞,你们的关注和点赞是我持续创作的动力,谢谢!
一、网页概述
本实例应用html5+css3+js:瀑布流布局、图片轮翻、无缝滚动插件、文字滑动特效、留言表单等。响应式自适应网页,可以根据不同的设备屏幕大小自动调整页面布局,提高用户体验;本网页支持如Dreamweaver、HBuilder、Text 、Vscode 等任意html编辑软件进行编辑修改;支持包括IE、Firefox、Chrome、Safari主流浏览器浏览。
二、网页文件
本网页共包含1个页面:
三、网页效果
以下是本篇文章正文内容,下面案例仅供参考(节选示例):
四、代码展示
1.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>黑夜主权(Night)</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="apple-mobile-app-capable" content="yes">
<meta name="apple-mobile-app-status-bar-style" content="black">
<meta name="description" content="一只叫做黑夜的阿宅,想成为家喻户晓的大侠">
<meta name="keywords" content="二次元,宅属性,前端,编程,全栈,绘画,设计">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="author" content="cononico">
<meta name="application-name" content="Cononico" >
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="css/process.css">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<script type="text/javascript">
//设定rem值
document.getElementsByTagName("html")[0].style.fontSize = document.documentElement.clientWidth/20 + 'px';
</script>
</head>
<body>
<header class="head">
<div class="head_logo_div">
<img class="logo_img" src="images/upload/head.jpg"></a>
</div>
<div class="head_nav_div">
<nav class="head_nav">
<ul id="nav_ul">
<li class="nav_li_on nav_ul_li">Home</li>
<li class="nav_ul_li">Skill</li>
<li class="nav_ul_li">Experience</li>
<li class="nav_ul_li">Hobby</li>
<li class="nav_ul_li">Contact</li>
</ul>
</nav>
</div>
<div class="clear"></div>
</header>
<ul class="float_btn" id="float_btn">
<li class="btn_on"></li>
<li></li>
<li></li>
<li></li>
</ul>
<div class="wrapBox" id="wrapBox">
<div class="box">
<img class="box_bg" src="images/upload/pic_1.jpg">
<div class="box01_content">
<div class="head_div">
<div class="cycle_item">
<a href="https://yoomeili.cn" class="github_a" id="github_a" target="_blank">
<span class="github_icon"></span>
<span class="github_text"><p class="item_name">GitHub</p></span>
</a>
<a href="http://blog.yoomeili.cn" class="weibo_a" id="weibo_a" target="_blank">
<span class="weibo_icon"></span>
<span class="weibo_text"><p class="item_name">微博</p> </span>
</a>
<a href="http://blog.yoomeili.cn" class="blog_a" id="blog_a" target="_blank">
<span class="blog_icon"></span>
<span class="blog_text"><p class="item_name"> 博客</p></span>
</a>
<div class="green_cycle">
<img class="green_cycle_img" src="images/icon/green_cycle.svg">
<div class="yellow_cycle">
<img class="yellow_cycle_img" src="images/icon/yellow_cycle.svg">
<div class="blue_cycle">
<img class="blue_cycle_img" src="images/icon/blue_cycle.svg">
<div class="head_img_div">
<img class="head_img" src="images/upload/head.jpg">
</div>
</div>
</div>
</div>
</div>
</div>
...
2.CSS
代码如下(节选示例):
/* reset */
*{
margin:0;
padding:0;
list-style-type:none;
font-family: 'Microsoft Yahei', '宋体', arial, 'Hiragino Sans GB', Helvetica;
}
label{
cursor:pointer;
}
img{
vertical-align:middle;
}
table{
empty-cells:show;
border-collapse:collapse;
border-spacing:0;
}
abbr,acronym{
border:0;
font-variant:normal;
}
address,caption,cite,code,dfn,em,th,var,optgroup{
font-style:normal;
font-weight:normal;
}
input,button,textarea,select,optgroup,option{
font-family:inherit;
font-size:inherit;
font-style:inherit;
font-weight:inherit;
}
input,button,textarea,select{
*font-size:100%;
}
a,img{
border:0;
}
a,a:visited,a:hover{
color:#5e5e5e;
text-decoration:none;
}
.clear{
clear: both;
}
/*main*/
body{
background-color: #ffffff;
width: 100%;
}
.head{
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: 100%;
background-color: #f3f7fa;
height: 70px;
filter:alpha(opacity=90);
-moz-opacity:0.9;
opacity:0.9;
-khtml-opacity: 0.9;
}
.logo_img{
width: 45px;
height: 45px;
border-radius: 50%;
border: 2px solid #ffffff;
margin-bottom: 15px;
}
...
3.JS
代码如下(节选示例):
(function(){
var h = window.innerHeight;
var w = window.innerWidth;
var bg = document.getElementsByClassName("box_bg");
if((w/h) >= (1920/1080)){
for(var i = 0;i < bg.length; i++){
bg[i].style.width = w + 'px';
bg[i].style.height = w * (1080/1920) + 'px';
bg[i].style.top = -(w * (1080/1920) - h)/2 + 'px';
bg[i].style.left = '0';
}
}
else{
for(var i = 0; i < bg.length; i++){
bg[i].style.height = h + 'px';
bg[i].style.width = h*(1920/1080) + 'px';
bg[i].style.left = -(h*(1920/1080) - w)/2 + 'px';
bg[i].style.top = '0';
}
}
var box01_index = 0;
var box01_p = document.getElementById('box01_text').children;
function boxOne() {
if(box01_index >=0 && box01_index <= 2){
box01_p[box01_index].style.opacity = '1';
box01_index ++;
}
else{
clearInterval(boxOneTimer);
}
}
var x_arr = new Array();
var y_arr = new Array();
var x = y = m =0;
for(var i = 0; i < 800; i++){
if(i >= 400){
x = m;
y = 200 + Math.sqrt(40000 - Math.pow(x-200,2));
m--;
}
else{
x = m;
y = 200 - Math.sqrt(40000 - Math.pow(x-200,2));
m++;
}
x_arr[i] = x - 60;
y_arr[i] = parseInt(y) - 25;
}
/*
*原型轨迹
*/
var gitMove = document.getElementById('github_a');
var weiboMove = document.getElementById('weibo_a')
var blogMove = document.getElementById('blog_a')
var g_num = 0;
var w_num = 0;
var b_num = 0;
function movegit(){
if(g_num <= 750){
// gitMove.css({"left":x_arr[g_num] + "px","top":y_arr[g_num]+"px"});
gitMove.style.left = x_arr[g_num] + 'px';
gitMove.style.top = y_arr[g_num] + 'px';
g_num += 3;
}
else{
clearInterval(gitTimer);
}
}
function moveweibo(){
if(w_num <= 400){
// weiboMove.css({"left":x_arr[w_num]+"px","top":y_arr[w_num]});
weiboMove.style.left = x_arr[w_num] + 'px';
weiboMove.style.top = y_arr[w_num] + 'px';
w_num += 3;
}
else{
clearInterval(weiTimer);
}
}
function moveblog(){
if(b_num <= 90){
// blogMove.css({"left":x_arr[b_num]+"px","top":y_arr[b_num]});
blogMove.style.left = x_arr[b_num] + 'px';
blogMove.style.top = y_arr[b_num] + 'px';
b_num += 3;
}
else{
clearInterval(blogTimer);
}
}
movegit();
var gitTimer=setInterval(movegit,1);
moveweibo();
var weiTimer=setInterval(moveweibo,1);
moveblog();
var blogTimer=setInterval(moveblog,1);
...
五、总结
设计一个样式美观又人性化的网页,除了具备扎实的专业知识,还需具备美学和人机工程学等相关知识,优秀的网页应具备以下几个特点:
1.简洁实用
尽量以最高效率的方式将用户所要想得到的信息传送给他就是最好的,要去掉所有的冗余的东西;
2.使用方便
要满足使用者的要求,网页适合使用,显示出其功能美;
3.整体性好
围绕一个统一的目标设计,强调整体的功能性;
4.形象突出
尽量符合网页美的标准,能够使网站的形象得到最大限度的提升,追求雅俗共赏。页面用色协调,布局符合形式美的要求:布局有条理,充分利用美的形式,使网页富有可欣赏性,提高档次。
5.交互式强
发挥网络的优势,想方设法使每个使用者都参与到其中来。
六、更多推荐
【关注作者|获取更多源码|优质文章】;Web前端网页制作、大学生毕业设计辅导、期末大作业辅导、模板源码、技术咨询等,有兴趣的联系我!
更多优质博客文章、网页模板点击以下链接查阅:
关注作者,点赞收藏博文,获取更多源码,Thanks!5000+完整代码,主题涵盖30+种类型:
大学生期末大作业、课程设计、毕业设计、完整代码案例模板、Web前端网页定制、教学课程、学习资料等,有兴趣的添加以下微信交流👇🏻👇🏻👇🏻