0
点赞
收藏
分享

微信扫一扫

网页设计期末课程设计 学校网站制作 我的大学官网网站制作 html+css+js南京师范大学泰州学院 (1)

📂文章目录

  • ​​二、📚网站介绍​​
  • ​​三、🔗网站效果​​
  • ​​▶️1.视频演示​​
  • ​​🧩 2.图片演示​​
  • ​​四、💒 网站代码​​
  • ​​🧱HTML结构代码​​
  • ​​🏠CSS样式代码​​
  • ​​五、🎁更多源码​​

二、📚网站介绍

📔网站布局方面:计划采用目前主流的、能兼容各大主流浏览器、显示效果稳定的浮动网页布局结构。

📓网站程序方面:计划采用最新的网页编程语言HTML5+CSS3+JS程序语言完成网站的功能设计。并确保网站代码兼容目前市面上所有的主流浏览器,已达到打开后就能即时看到网站的效果。

📘网站素材方面:计划收集各大平台好看的图片素材,并精挑细选适合网页风格的图片,然后使用PS做出适合网页尺寸的图片。

📒网站文件方面:网站系统文件种类包含:html网页结构文件、css网页样式文件、js网页特效文件、images网页图片文件;

📙网页编辑方面:网页作品代码简单,可使用任意HTML编辑软件(如:​​Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++​​​ 等任意html编辑软件进行运行及修改编辑等操作)。
其中:
(1)📜html文件包含:其中index.html是首页、其他html为二级页面;
(2)📑 css文件包含:css全部页面样式,文字滚动, 图片放大等;
(3)📄 js文件包含:js实现动态轮播特效, 表单提交, 点击事件等等(个别网页中运用到js代码)。

三、🔗网站效果

▶️1.视频演示

R31SJ-南京师范大学泰州学院三级页面带dw模板

🧩 2.图片演示

网页设计期末课程设计 学校网站制作 我的大学官网网站制作 html+css+js南京师范大学泰州学院 (1)_web前端期末大作业


网页设计期末课程设计 学校网站制作 我的大学官网网站制作 html+css+js南京师范大学泰州学院 (1)_web课程与设计_02


网页设计期末课程设计 学校网站制作 我的大学官网网站制作 html+css+js南京师范大学泰州学院 (1)_web课程与设计_03


网页设计期末课程设计 学校网站制作 我的大学官网网站制作 html+css+js南京师范大学泰州学院 (1)_前端_04


网页设计期末课程设计 学校网站制作 我的大学官网网站制作 html+css+js南京师范大学泰州学院 (1)_网页设计与制作_05


网页设计期末课程设计 学校网站制作 我的大学官网网站制作 html+css+js南京师范大学泰州学院 (1)_web_06


网页设计期末课程设计 学校网站制作 我的大学官网网站制作 html+css+js南京师范大学泰州学院 (1)_web_07


网页设计期末课程设计 学校网站制作 我的大学官网网站制作 html+css+js南京师范大学泰州学院 (1)_web前端期末大作业_08



网页设计期末课程设计 学校网站制作 我的大学官网网站制作 html+css+js南京师范大学泰州学院 (1)_网页设计与制作_09


网页设计期末课程设计 学校网站制作 我的大学官网网站制作 html+css+js南京师范大学泰州学院 (1)_web_10

四、💒 网站代码

🧱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>视觉传达1601班</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-----头部开始------->
<div class="top">
<a href="index.html"><img class="floatl" src="images/logo.jpg" /></a>
<div class="mz">视觉传达1601班级</div>
</div>
<!---nav开始---->
<div class="daohang">
<div id="nav">
<ul>
<li><a href="index.html">首页</a></li>
<li><a href="about.html">关于我们</a></li>
<li><a href="sheji.html">设计项目</a></li>
<li><a href="anli.html">客户案例</a></li>
<li><a href="news.html">新闻资讯</a></li>
<li><a href="lianxi.html">联系我们</a></li>
<li><a href="jianjie.html">个人简介</a></li>
</ul>
</div>
</div>
<!---nav结束---->
<!-----banner------->
<div class="box" id="box">
<div class="inner">
<!--轮播图-->
<ul>
<li><img src="images/ban01.jpg" alt=""></li>
<li><img src="images/ban02.jpg" alt=""></li>
<li><img src="images/ban03.jpg" alt=""></li>

</ul>

<ol class="bar">

</ol>
<!--左右焦点-->
<div id="arr">
<span id="left">
<
</span>
<span id="right">
>
</span>
</div>

</div>


</div>


<!-----头部结束------->
<!-----main开始------->
<div class="main">
<div class="left">
<div class="title"><a href="news.html"><h1>新闻资讯</h1><span>更多>></span></a></div>
<div class="left-box">
<ul>
<a href="new01.html"><li><h2>党支部开展"党员政治生日"主题活动</h2></li></a>
<a href="new02.html"><li><h2>青春心向党 建功新时代 </h2></li></a>
<a href="new03.html"><li><h2>后勤保障人员安全知识培训 </h2></li></a>
<a href="new04.html"><li><h2>教师教育学院举办"快乐起航...</h2></li></a>
<a href="new01.html"><li><h2>党支部开展"党员政治生日"主题活动</h2></li></a>
<a href="new02.html"><li><h2>青春心向党 建功新时代 </h2></li></a>
<a href="new03.html"><li><h2>后勤保障人员安全知识培训 </h2></li></a>
<a href="new04.html"><li><h2>教师教育学院举办"快乐起航...</h2></li></a>
<a href="new01.html"><li><h2>党支部开展"党员政治生日"主题活动</h2></li></a>
<a href="new02.html"><li><h2>青春心向党 建功新时代 </h2></li></a>
<a href="new03.html"><li><h2>后勤保障人员安全知识培训 </h2></li></a>

</ul>
</div>
<div class="title"><a href="lianxi.html"><h1>联系我们</h1><span>更多>></span></a></div>
<div class="left-box left-box2">
<ul>
<li><h2>工作时间:周一到周五9:00-17:00</h2></li>
<li><h2>联系地址:视觉传达1601班级</h2></li>
<li><h2>联系电话:400-8888888</h2></li>
<li><h2>宣传合作:400-888-6666-33</h2></li>
</ul>
</div>
</div>


<div class="right">
<div class="box1">
<div class="wen">
<a href="about.html"><h1>关于我们</h1></a>
<p>南京师范大学泰州学院是一所于2004年6月经国家教育部批准成立的普通高校本科层次独立学院,由南京师范大学和泰州高教投资发展有限公司共同组建。</P>
<p>经过14年的办学实践与探索,学院形成了适应地方经济与社会发展需要、具有自身特色的发展思路和运行机制,为事业更好更快发展奠定了坚实基础。</P>
</div>
<img src="images/ri01.jpg" />
</div>
<div class="box2">
<img src="images/ri02.jpg" />
<div class="wen">
<a href="sheji.html"><h1>设计项目</h1></a>
<p>视觉传达设计是指依据特定的设计目的,对信息进行分析、归纳并通过文字、图形、色彩、造型等基本要素进行设计创作,是将可视化信息传达给受众并对受众产生影响的过程。</P>
<p>在新精神、新艺术、新工具、新空间、新媒体空前发展的情形下,能够展现出神奇的风貌,满足各方面的需求。</P>
</div>
</div>

</div>

</div>

<!-----main结束------->
<!-----bottom开始------->
<div class="bottom">
<div class=" daoh">
2000-2019 @版权所有 视觉传达1601班级 . 07160125 鲍闻
</div>
<img src="images/logo.jpg" />
</div>

<!-----bottom结束------->
<script>/**
*
* @param id 传入元素的id
* @returns {HTMLElement | null} 返回标签对象,方便获取元素
*/
function my$(id) {
return document.getElementById(id);
}

//获取各元素,方便操作
var box=my$("box");
var inner=box.children[0];
var ulObj=inner.children[0];
var list=ulObj.children;
var olObj=inner.children[1];
var arr=my$("arr");
var imgWidth=inner.offsetWidth;
var right=my$("right");
var pic=0;
//根据li个数,创建小按钮
for(var i=0;i<list.length;i++){
var liObj=document.createElement("li");

olObj.appendChild(liObj);
liObj.innerText=(i+1);
liObj.setAttribute("index",i);

//为按钮注册mouseover事件
liObj.onmouseover=function () {
//先清除所有按钮的样式

for (var j=0;j<olObj.children.length;j++){
olObj.children[j].removeAttribute("class");
}
this.className="current";
pic=this.getAttribute("index");
animate(ulObj,-pic*imgWidth);
}

}


//设置ol中第一个li有背景颜色
olObj.children[0].className = "current";
//克隆一个ul中第一个li,加入到ul中的最后=====克隆
ulObj.appendChild(ulObj.children[0].cloneNode(true));

var timeId=setInterval(onmouseclickHandle,2000);
//左右焦点实现点击切换图片功能
box.onmouseover=function () {
arr.style.display="block";
clearInterval(timeId);
};
box.onmouseout=function () {
arr.style.display="none";
timeId=setInterval(onmouseclickHandle,2000);
};

right.onclick=onmouseclickHandle;
function onmouseclickHandle() {
//如果pic的值是5,恰巧是ul中li的个数-1的值,此时页面显示第六个图片,而用户会认为这是第一个图,
//所以,如果用户再次点击按钮,用户应该看到第二个图片
if (pic == list.length - 1) {
//如何从第6个图,跳转到第一个图
pic = 0;//先设置pic=0
ulObj.style.left = 0 + "px";//把ul的位置还原成开始的默认位置
}
pic++;//立刻设置pic加1,那么此时用户就会看到第二个图片了
animate(ulObj, -pic * imgWidth);//pic从0的值加1之后,pic的值是1,然后ul移动出去一个图片
//如果pic==5说明,此时显示第6个图(内容是第一张图片),第一个小按钮有颜色,
if (pic == list.length - 1) {
//第五个按钮颜色干掉
olObj.children[olObj.children.length - 1].className = "";
//第一个按钮颜色设置上
olObj.children[0].className = "current";
} else {
//干掉所有的小按钮的背景颜色
for (var i = 0; i < olObj.children.length; i++) {
olObj.children[i].removeAttribute("class");
}
olObj.children[pic].className = "current";
}
}
left.onclick=function () {
if (pic==0){
pic=list.length-1;
ulObj.style.left=-pic*imgWidth+"px";
}
pic--;
animate(ulObj,-pic*imgWidth);
for (var i = 0; i < olObj.children.length; i++) {
olObj.children[i].removeAttribute("class");
}
//当前的pic索引对应的按钮设置颜色
olObj.children[pic].className = "current";
};

//设置任意的一个元素,移动到指定的目标位置
function animate(element,) {
clearInterval(element.timeId);
//定时器的id值存储到对象的一个属性中
element.timeId = setInterval(function () {
//获取元素的当前的位置,数字类型
var current = element.offsetLeft;
//每次移动的距离
var step = 10;
step = current < target ? step : -step;
//当前移动到位置
current += step;
if (Math.abs(current - target) > Math.abs(step)) {
element.style.left = current + "px";
} else {
//清理定时器
clearInterval(element.timeId);
//直接到达目标
element.style.left = target + "px";
}
}, 10);
}</script>
</body>
</html>

🏠CSS样式代码

@charset "utf-8";
/* CSS Document */
body{ margin:0 auto; font-size:12px; font-family: "宋体",arial; line-height:22px; }

div,p,input,ul,li,p,h1,h2,h3,h4,h5,h6,dl,dt,dd{ height:auto; margin:0;; padding:0; vertical-align:middle ;}

li{ list-style:none;}

a{ text-decoration:none;}

.ul{ list-style:none;}

.divclear{ clear:both;}

img{ border:0; margin:0; padding:0;}

a{color:#333;}

a:link{ color:#333;}

a:hover {color:#629705;text-decoration:none;overflow:hidden;}

/*---网页开始-----*/
/*---top开始-----*/
.top{ height: 110px;width: 1024px;margin: 0 auto; background:url(../images/top-bg.jpg) repeat; text-align:center; }
.top img{ float:left;}
.mz{ font-size: 40px;
float: right;
color: #333;
height: 110px;
line-height: 110px;
margin-right: 30px;
font-weight: bold;}
/*---top结束-----*/
/*---导航----*/
.daohang{width: 1024px; height: 50px; margin: 0 auto; background: #046a43;}
#nav{ width:1170px; height:50px; line-height:50px; font-family:"微软雅黑"; margin:0 auto; }

#nav ul{ margin:0 auto; }

#nav li{float: left;
width: 140px;
text-align: center;
color: #FFF;
}

#nav a{width:140px;height:50px; display:block; font-size:24px; float:left;}

#nav a:link { color:#fbd5c3; }

#nav a:visited{ color:#fbd5c3; text-decoration:none; overflow:hidden; }

#nav a:hover { color: #FFF ; text-decoration:none; overflow:hidden; background:#0c4831; }

#nav a:active { color: #FFF; text-decoration:none; overflow:hidden; background:#0c4831; }
.box{ height:300px;
width: 1024px;
margin: 0 auto;
margin-bottom:10px;}
.inner{
width: 1024px;
height: 300px;
position: relative;
overflow: hidden;
}
.inner img{
width:1024px;
height: 300px;
vertical-align: top
}
.inner ul {
width: 1000%;
position: absolute;
list-style: none;
left:0;
top: 0;
}
.inner li{
float: left;

}

ol {
position: absolute;
height: 20px;
right: 20px;
bottom: 12px;
text-align: center;
padding: 5px;
}
ol li{
display: block;
width: 20px;
height: 20px;
line-height: 20px;
background-color: #fff;
margin: 5px;
cursor: pointer;
}
ol .current{
background-color: red;
}
#arr{
display: block;
}
#arr span{
width: 30px;
height: 40px;
position: absolute;
left: 14px;
top: 156px;
margin-top: -20px;
background: #fff;
cursor: pointer;
line-height: 40px;
text-align: center;
font-weight: bold;
font-family: '黑体';
font-size: 30px;
color: #000;
opacity: 0.5;
border: 1px solid #fff;
}
#arr #right {
right: 18px;
left: auto;
}
.main{ width: 1024px;
height: auto;
overflow:hidden;
margin: 0 auto;
}
.left{width: 279px;
height: 615px;
float: left;
margin-right: 15px;
overflow: hidden;}
.left .title {
width: 279px;
height: 45px;
background: #046a43;
}
.left .title h1 {
width: 210px;
height: 46px;
line-height: 46px;
font-size: 14px;
font-family: "宋体";
color: #FFF;
padding-left: 10px;
float:left;
}
.title span {
width: 50px;
height: 46px;
float: left;
line-height: 46px;
font-size: 12px;
color: #FFF;
}
.left .left-box{
width: 279px;

height: 323px;

margin-bottom: 10px;

background: #f8f8f8;

padding: 20px 0px;
}
.left .left-box2 {
height:110px;

}
.left .left-box ul {padding: 0px;margin: 0px;}
.left .left-box ul li {
width: 249px;

height: 30px;

float: left;

background: url(../images/dian.jpg) no-repeat left;

border-bottom: none;

padding: 0px 15px;
}
.left .left-box ul li h2 {
height: 30px;

line-height: 20px;

font-size: 14px;

font-weight: lighter;
}
.right{width: 680px;
padding: 25px;
height: 562px;
float: left;
background: #f8f8f8;
overflow: hidden;}
.right .box1{ width: 680px;
height: 270px; }
.right .box1 img{ width: 350px;
height: 253px;
float: left;
margin-left: 30px;}
.box1 .wen{ width: 300px;
float: left;}
.box1 h1{ color: #3c3c3c;
font-size: 24px;
width: 100%;
margin-bottom:20px;}
.box1 p{ display: block;
font-size: 16px;
width: 100%;
line-height:27px;text-indent: 2em;}

.right .box2{ width: 680px;
height: 257px;
margin-top: 30px;}

.right .box2 img{width: 350px;
height: 253px;
float: left;
margin-right: 30px;}
.box2 .wen{ width: 300px;
float: left;}
.box2 h1{ color: #3c3c3c;
font-size: 24px;
width: 100%;
margin-bottom:20px;}
.box2 p{ display: block;
font-size: 16px;
width: 100%;
line-height:27px;text-indent: 2em;}
/*-----内页------*/
.ban{ height:209px;
width: 1024px;
margin: 0 auto;
margin-bottom:10px;}
.nei-left{ width:279px; height:570px; float:left; margin-right:15px; overflow:hidden; }
.nei-left .title{ padding-left:10px; height:56px; padding-top:40px; background:#f8f8f8; margin-bottom:5px; }
.nei-left .title h1{ font-size:36px; color:#141414; text-align:center; }
.nei-right{ width:680px; padding:25px; min-height:540px; height:auto; overflow:hidden; float:left; background:#f8f8f8; color:#141414; font-size:18px; font-family:"微软雅黑"; line-height:36px;overflow:hidden; }
.sj{width: 700px;height: auto;overflow: hidden;}
.sj ul{ }
.sj ul li{ width: 290px;
height: 230px;
float: left;
padding: 10px;
text-align: center;}
.sj ul li img{ width:280px; height:185px;}
.sj ul li h1{ color:#141313; height:40px; font-weight:normal; font-size:24px;}
.anli{ width: 700px;
height: 500px;}
.anli ul{ }
.anli ul li{width: 200px;
height: 220px;
float: left;
padding: 10px;
text-align: center;}
.anli ul li img{ width: 200px;
height: 140px;}
.anli ul li h1{ color:#141313; height:40px; font-weight:normal; font-size:24px;}
.news{ width:100%; }
.news ul li{ line-height:35px; height:35px; border-bottom:#CCC 1px dashed; color:#141414; font-size:16px;}
.news ul li a{ float:left; display:block; line-height:35px; height:30px; color:#3d2915; }
.news ul li a:hover{ color:#000;}
.news ul li span{ float:right; color:#666; line-height:35px;}
.lianxi{ width: 680px;
height: 285px;
margin-top: 40px;}
.lianxi img{ width: 200px;
height: 200px;
float: left;
margin-right: 65px;}
.lianxi p{ color:#141414; height:40px; line-height:40px;}
.cert{ text-align:center;}
.wenz{width: 984px;
height: auto;
overflow: hidden;
background: #f8f8f8;
padding: 20px;
text-align:center;
}
.wenz p{ text-align: left;}
.wenz img{ margin:20px 0px;}
.timu{ width:100%; color:#141414; font-size:30px; height:60px; line-height:50px; text-align:center;}
.content{ width:100%; text-align:center; height:auto; overflow:hidden; margin:10px 0px;}
/*---bottom结束-----*/
.bottom{ width: 1024px;margin: 0 auto;margin-top: 20px; height:143px; background:url(../images/top-bg.jpg) repeat;}
.bottom img{float:right; margin-right:20px; margin-top:20px;}
.bottom .daoh{color: #111111;
width: 550px;
float: left;
height: 50px;
margin-top: 50px;
font-size: 16px;
margin-left: 30px;
line-height: 50px;}
.bottom .daoh ul{ }
.bottom .daoh ul li{ width:100px; height:50px; float:left; font-size:18px; line-height:50px; background:url(../images/jiange.png) right no-repeat; text-align:center;}
/*---bottom结束-----*/

五、🎁更多源码

1.如果我的博客对你有帮助 ​​请 “👍点赞” “✍️评论” “💙收藏” ​​一键三连哦!

2.​​💗【👇🏻👇🏻👇🏻🉑关注我| 获取更多源码】 ​​带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、等!

📣以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻


举报

相关推荐

0 条评论