1000字范文,内容丰富有趣,学习的好帮手!
1000字范文 > 大一作业HTML网页作业:中华传统文化题材网页设计(纯html+css实现----中国结 12页

大一作业HTML网页作业:中华传统文化题材网页设计(纯html+css实现----中国结 12页

时间:2022-02-16 11:59:41

相关推荐

大一作业HTML网页作业:中华传统文化题材网页设计(纯html+css实现----中国结 12页

源码获取 文末联系

Web前端开发技术

描述网页设计题材,DIV+CSS 布局制作,HTML+CSS网页设计期末课程大作业 | 茶文化网站 | 中华传统文化题材 | 京剧文化水墨风书画 | 中国民间年画文化艺术网站 | 等网站的设计与制作 | HTML期末大学生网页设计作业

HTML:结构

CSS:样式

在操作方面上运用了html5和css3,

采用了div+css结构、表单、超链接、浮动、绝对定位、相对定位、字体样式、引用视频等基础知识

JavaScript:做与用户的交互行为

文章目录

前端学习路线网页基本结构网页演示HTML结构代码 学的反而越迷茫学习更多

前端学习路线

(1)html文件:其中index.html是首页、其他html为二级页面;

(2)css文件:css全部页面样式,文字滚动, 图片放大等;

(3)js文件:js实现动态轮播特效, 表单提交, 点击事件等等(网页中运用到js代码)

网页基本结构

(1)首页:进入网页中看到的第一个页面(LOGO、公司名称、导航、banner、新闻、相关信息、底部信息、banner一般是5个

(2)二级页面:从首页点击进入之后的页面叫做二级页面

(3)三级页面:从二级页面点击进入的页面

网页html:网页是构成网站的基本元素,是承载各种网站应用的平台。通俗地说,网站就是由网页组成的

首页网站:首页是一个网站的入口网页,故往往会被编辑得易于了解该网站多数作为首页的文件名是index加上扩展名

导航菜单:是指位于页面顶部或者侧边区域的,也称之为导航栏,它起着链接站点或者软件内的各个页面的作用.

网页页脚:是网页中每个页面的底部的区域。常用于显示附加信息。如作者、备案号等。

网页演示

HTML结构代码

<!DOCTYPE html><html><head><meta charset="UTF-8" /><title>首页</title><script src="js/main.js"></script><script src="./js/myModal.js"></script><link href="css/main.css" rel="stylesheet" type="text/css" /><link rel="stylesheet" href="js/font/iconfont.css" /><link rel="stylesheet" href="css/major.css" /><style>/* 轮播样式 *//* #region */.swiper {width: 1000px;height: 400px;margin: 0 auto;overflow: hidden;position: relative;margin-top: 65px;}.swiper > .lb {background-position: center;background-repeat: no-repeat;background-size: cover;height: 400px;width: 100%;}.swiper > .lb:nth-child(1) {background-image: url('images/main/1.jpg');}.swiper > .lb:nth-child(2) {background-image: url('images/main/2.jpg');}.swiper > .lb:nth-child(3) {background-image: url('images/main/3.jpg');}.swiper > .lb_btn {width: 50px;height: 50px;position: absolute;z-index: 2;top: 50%;transform: translateY(-50%);cursor: pointer;background-position: center;background-repeat: no-repeat;background-size: 100%;}.swiper > .l {left: 8px;background-image: url('images/icon/l.png');}.swiper > .r {right: 8px;background-image: url('images/icon/r.png');}.swiper > .lb_bottom {position: absolute;bottom: 0;width: 100%;height: 25px;}.swiper > .lb_bottom > .lb_point {width: 80px;z-index: 4;height: 20px;margin: 0 auto;display: flex;justify-content: center;align-items: center;}.swiper > .lb_bottom > .lb_point > span {display: inline-block;width: 8px;height: 8px;border-radius: 8px;background-color: #808080;margin-left: 5px;margin-right: 5px;}.hiddle {display: none;}.swiper > .lb_bottom > .lb_point > .poAct {background-color: #007aff;}/* #endregion *//* 广告样式 *//* #region */.adv {width: 100%;height: 60px;margin: 0;margin-top: 10px;position: relative;}.adv > .adv_item {height: 100%;width: 100%;background-position: center;background-repeat: no-repeat;background-size: 100%;}.adv > .adv_img1 {background-image: url('images/adv/1.jpg');}.adv > .adv_img2 {background-image: url('images/adv/2.jpg');}.adv > .adv_img3 {background-image: url('images/adv/3.jpg');}.sw_adv {position: absolute;right: 10px;top: 5px;z-index: 2;color: #086879;background-color: #a09090a6;border-radius: 2px;padding-left: 2px;padding-right: 2px;}.sw_adv > .icon-cuowu {margin-left: 8px;}.sw_adv > .icon-cuowu:hover {cursor: pointer;}/* #endregion *//* main样式 */.yemian {margin-bottom: 10px;}</style></head><body><div><!-- 导航栏 --><nav class="myNavbar"><div class="nav_container"><div class="container_l"><div class="logo item"><a href="index.html"></a></div><div class="item item_act"><a href="index.html">首页</a></div><div class="item"><a href="list.html">活动列表</a></div><div class="item"><a href="column.html">栏目</a></div><div class="item"><a href="#" id="user_center">个人中心</a></div><div class="item"><a href="#" id="user_login">登录&注册</a></div><div class="item" id="dl" style="display: none"><a href="#">退出登录</a></div></div><div class="container_r"><div class="userImg"></div><div class="drop"><span id="u_name">未登录</span></div></div></div></nav><!-- 轮播 --><div class="swiper"><div class="lb" index="1"></div><div class="hiddle lb" index="2"></div><div class="hiddle lb" index="3"></div><div class="l lb_btn"></div><div class="r lb_btn"></div><div class="lb_bottom"><div class="lb_point"><span index="1" class="lb_po poAct"></span><span index="2" class="lb_po"></span><span index="3" class="lb_po"></span></div></div></div><!-- main package --><div class="yemian"><div class="kuang"><div class="wenzi"><p>中国结是一种中国特有的手工编织工艺品,它身上所显示的情致与智慧正是中华古老文明中的一个侧面。它原本是由旧石器时代的缝衣打结,后推展至汉朝的仪礼记事,再演变成今日的装饰手艺。</p><p>周朝人随身的佩戴玉常以中国结为装饰,而战国时代的铜器上也有中国结的图案,延续至清朝中国结才真正成为了盛传于民间的艺术。 当代多用来装饰室内、亲友间的馈赠礼物及个人的随身饰物。因为其外观对称精致,可以代表中国悠久的历史,符合中国传统装饰的习俗和审美观念,故命名为中国结。</p><p>中国结中,有:双钱结、纽扣结、琵琶结、团锦结、十字结、吉祥结、万字结、盘长结、藻井结、双联结、锦囊结等多种结式。中国结代表着团结幸福平安,特别是在民间,它精致的做工深受大众的喜爱。</p><div class="shipin"><video id="media" width="1000" height="600" controls><source src="./videos/1.mp4" /></video></div></div></div><div class="tu"><div class="t"><a href="2.html"><img class="an_img" src="images/1.jpg" width="323" height="270" /></a></div><div class="t"><a href="3.html"><img class="an_img" src="images/2.jpg" width="323" height="270" /></a></div><div class="t"><a href="4.html"><img class="an_img" src="images/3.jpg" width="323" height="270" /></a></div></div><div class="clearit"></div></div><!-- 广告 --><div class="swiper adv"><div class="sw_adv"><span>广告</span><span class="iconfont icon-cuowu"></span></div><div class="adv_item adv_img1" index="1"></div><div class="hiddle adv_item adv_img2" index="2"></div><div class="hiddle adv_item adv_img3" index="3"></div></div><div class="banquan"><p>Copyright © &nbsp;&nbsp;&nbsp; 姓名:xxx &nbsp;&nbsp;&nbsp; 学号:xxxx</p></div><!-- 返回顶部 --><div class="to" id="to_top"><a href="#top" title="返回顶部"><span class="iconfont icon-huojianxianxing"></span></a></div></div></body><script>// 轮播//#region// nodeList转为数组let imgList = Array.from(document.querySelectorAll('.lb'))let poList = Array.from(document.querySelectorAll('.lb_po'))let currentIndex = 1let timerID = '' // 计时器iddocument.querySelector('.l').onclick = function () {changeImg('l')reSwiper()}document.querySelector('.r').onclick = function () {changeImg('r')reSwiper()}// 自动轮播function autoSwiper() {timerID = window.setInterval(function () {changeImg('r')}, 3000)}autoSwiper()// 刷新轮播function reSwiper() {window.clearInterval(timerID)autoSwiper()}// 改变图片function changeImg(dir) {imgHiddle()if (dir == 'l') {currentIndex = currentIndex == 1 ? 3 : currentIndex - 1} else {currentIndex = currentIndex == 3 ? 1 : currentIndex + 1}imgList.some(function (e, i) {let ind = e.getAttribute('index')if (currentIndex == ind) {e.classList.remove('hiddle')poList[i].classList.add('poAct')return true}})}// 清除样式function imgHiddle() {imgList.forEach(function (e, i) {e.classList.remove('hiddle')e.classList.add('hiddle')poList[i].classList.remove('poAct') // 清除小点的样式})}//#endregion// 广告// #regionlet advList = Array.from(document.querySelectorAll('.adv_item'))let advIndex = 1let advTimerID = ''// 自动轮播function autoSwiperADV() {advTimerID = window.setInterval(function () {changeImgADV()}, 3000)}autoSwiperADV()// 清除样式function imgHiddleADV() {advList.forEach(function (e, i) {e.classList.remove('hiddle')e.classList.add('hiddle')})}function changeImgADV() {imgHiddleADV()advIndex = advIndex == 3 ? 1 : advIndex + 1advList.some(function (e, i) {let ind = e.getAttribute('index')if (advIndex == ind) {e.classList.remove('hiddle')return true}})}/*鼠标移入停止轮播*/let comtainer = document.querySelector('.adv')comtainer.onmouseenter = function () {window.clearInterval(advTimerID)}// 鼠标离开 继续轮播comtainer.onmouseleave = function () {autoSwiperADV()}// 关闭广告document.querySelector('.icon-cuowu').onclick = function () {window.clearInterval(advTimerID)document.querySelector('.adv').style.display = 'none'document.querySelector('.mainP').style.marginBottom = '10px'}// #endregion</script></html>

学的反而越迷茫

有这种感觉很正常,因为你还没有真正去公司里面待过,也不清楚自己到底要学多少东西才能胜任公司里面给你分配的活。我从你的表述来看,你的基础应该还是很扎实的。跟着网上那种全套的视频教程学肯定没有问题。

当你以后真正进入公司,发现工作的难度和量大约只有你学习时期的大约20%,你可能就会发出一声叹息:原来工作也不过如此嘛。

这是很正常的,因为大部分公司是招你进去去干活的,写业务的,不是让你一个新人去研发公司架构的。都是现成的东西,你要做的就是在别人的教导下,手把手的指挥下去添砖加瓦。到时候你恐怕要惊呼:就这?

所以,放松心态吧,好好享受大学时光

—————————————————

学习更多

关注我 | 点赞博文 | 每天带你涨知识

大一作业HTML网页作业:中华传统文化题材网页设计(纯html+css实现----中国结 12页 地缓存登录注册

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。