HTML+CSS+JS网页设计期末课程大作业 web前端开发技术 web课程设计 网页规划与设计

HTML实例网页代码, 本实例适合于初学HTML的同学。该实例里面有设置了css的样式设置,有div的样式格局,这个实例比较全面,有助于同学的学习,本文将介绍如何通过从头开始设计个人网站并将其转换为代码的过程来实践设计。

一、网页介绍

1 网页简介:此作品为学生个人主页网页设计题材,HTML+CSS 布局制作,web前端期末大作业,大学生网页设计作业源码,这是一个不错的网页制作,画面精明,代码为简单学生水平, 非常适合初学者学习使用。

2.网页编辑:网页作品代码简单,可使用任意HTML编辑软件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++ 等任意html编辑软件进行运行及修改编辑等操作)。

3.知识应用:技术方面主要应用了网页知识中的: Div+CSS、鼠标滑过特效、Table、导航栏效果、Banner、表单、二级三级页面等,视频、 音频元素 、Flash,同时设计了Logo(源文件)所需的知识点。


一、网页效果

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

二、代码展示

1.HTML代码

代码如下(示例):以下仅展示部分代码供参考~

<nav class="navbar navbar-expand-lg navbar-light fill px-lg-0 py-0 px-3">
		<div class="container">
			<h1><a class="navbar-brand" href="index.html"><span class="fa fa-play icon-log" aria-hidden="true"></span>
				专业展会 </a></h1>
			<!-- if logo is image enable this   
					<a class="navbar-brand" href="#index.html">
						<img src="image-path" alt="Your logo" title="Your logo" style="height:35px;" />
					</a> -->
			<button class="navbar-toggler collapsed" type="button" data-toggle="collapse"
				data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
				aria-label="Toggle navigation">
				<!-- <span class="navbar-toggler-icon"></span> -->
				<span class="fa icon-expand fa-bars"></span>
				<span class="fa icon-close fa-times"></span>
			</button>

			<div class="collapse navbar-collapse" id="navbarSupportedContent">
				<ul class="navbar-nav ml-auto">
					<li class="nav-item">
						<a class="nav-link" href="index.html"></a>
					</li>
					<li class="nav-item active">
						<a class="nav-link" href="about.html">关于</a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="genre.html">类型</a>
					</li>
					
					<li class="nav-item">
						<a class="nav-link" href="contact.html">接触</a>
					</li>
				</ul>

				<!--/search-right-->
				<!--/search-right-->
				<div class="search-right">
					<a href="#search" class="btn search-hny mr-lg-3 mt-lg-0 mt-4" title="search">搜索 <span
							class="fa fa-search ml-3" aria-hidden="true"></span></a>
					<!-- search popup -->
					<div id="search" class="pop-overlay">
						<div class="popup">
							<form  method="post" class="search-box">
								<input type="search" placeholder="请输入关键字" name="search"
									required="required" autofocus="">
								<button type="submit" class="btn"><span class="fa fa-search"
										aria-hidden="true"></span></button>
							</form>
							<div class="browse-items">
								<h3 class="hny-title two mt-md-5 mt-4">浏览全部:</h3>
								<ul class="search-items">
									<li><a href="genre.html">行动</a></li>
									<li><a href="genre.html">戏剧</a></li>
									<li><a href="genre.html">家庭</a></li>
									<li><a href="genre.html">惊悚</a></li>
									<li><a href="genre.html">喜剧</a></li>
									<li><a href="genre.html">浪漫的</a></li>
									<li><a href="genre.html">电视剧</a></li>
									<li><a href="genre.html">恐怖</a></li>
									<li><a href="genre.html">行动</a></li>
									<li><a href="genre.html">戏剧</a></li>
									<li><a href="genre.html">家庭</a></li>
									<li><a href="genre.html">惊悚</a></li>
									<li><a href="genre.html">喜剧</a></li>
									<li><a href="genre.html">浪漫的</a></li>
									<li><a href="genre.html">电视剧</a></li>
									<li><a href="genre.html">恐怖</a></li>
								</ul>
							</div>
						</div>
						<a class="close" href="#close">×</a>
					</div>
					<!-- /search popup -->
					<!--/search-right-->
				</div>


			</div>
			<!-- toggle switch for light and dark theme -->
			<div class="mobile-position">
				<nav class="navigation">
					<div class="theme-switch-wrapper">
						<label class="theme-switch" for="checkbox">
							<input type="checkbox" id="checkbox">
							<div class="mode-container">
								<i class="gg-sun"></i>
								<i class="gg-moon"></i>
							</div>
						</label>
					</div>
				</nav>
			</div>
			<!-- //toggle switch for light and dark theme -->
		</div>
	</nav>



2.CSS代码


body {
    
    
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  background-color: #fff;
}

[tabindex="-1"]:focus:not(:focus-visible) {
    
    
  outline: 0 !important;
}

hr {
    
    
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    
    
  margin-top: 0;
  margin-bottom: 0.5rem;
}

p {
    
    
  margin-top: 0;
  margin-bottom: 1rem;
}

abbr[title],
abbr[data-original-title] {
    
    
  text-decoration: underline;
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  cursor: help;
  border-bottom: 0;
  -webkit-text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
}

address {
    
    
  margin-bottom: 1rem;
  font-style: normal;
  line-height: inherit;
}

ol,
ul,
dl {
    
    
  margin-top: 0;
  margin-bottom: 1rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
    
    
  margin-bottom: 0;
}

dt {
    
    
  font-weight: 700;
}

dd {
    
    
  margin-bottom: .5rem;
  margin-left: 0;
}

blockquote {
    
    
  margin: 0 0 1rem;
}

b,
strong {
    
    
  font-weight: bolder;
}

small {
    
    
  font-size: 80%;
}

sub,
sup {
    
    
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sub {
    
    
  bottom: -.25em;
}

sup {
    
    
  top: -.5em;
}

a {
    
    
  color: #df0e62;
  text-decoration: none;
  background-color: transparent;
}

a:hover {
    
    
  color: #df0e62;
  text-decoration: underline;
}

a:not([href]) {
    
    
  color: inherit;
  text-decoration: none;
}

a:not([href]):hover {
    
    
  color: inherit;
  text-decoration: none;
}

pre,
code,
kbd,
samp {
    
    
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1em;
}

pre {
    
    
  margin-top: 0;
  margin-bottom: 1rem;
  overflow: auto;
}

figure {
    
    
  margin: 0 0 1rem;
}

img {
    
    
  vertical-align: middle;
  border-style: none;
}


三、个人总结

一套合格的网页应该包含(具体可根据个人要求而定)

  1. 页面分为页头、菜单导航栏(最好可下拉)、中间内容板块、页脚四大部分;
  2. 所有页面相互超链接,可到三级页面,有5-10个页面组成;
  3. 页面样式风格统一布局显示正常,不错乱,使用Div+Css技术;
  4. 菜单美观、醒目,二级菜单可正常弹出与跳转;
  5. 要有JS特效,如定时切换和手动切换图片新闻;
  6. 页面中有多媒体元素,如gif、视频、音乐,表单技术的使用;
  7. 页面清爽、美观、大方,不雷同。
  8. 网站前端程序不仅要能够把用户要求的内容呈现出来,还要满足布局良好、界面美观、配色优雅、表现形式多样等要求。

四、精彩推荐

1.看到这里了就 【点赞收藏博文】 三连支持下吧,你的支持是我创作的动力, 【观注作者 |获取更多源码| 优质文章】

2.关注我带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者,一起探讨 前端 Node 知识,互相学习」!

扫描二维码关注公众号,回复: 15345319 查看本文章

3.以上内容技术相关问题可以相互学习交流

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_38513433/article/details/128658124