家乡旅游景点网页作业制作 网页代码运用了DIV盒子的使用方法,如盒子的嵌套、浮动、margin、border、background等属性的使用,外部大盒子设定居中,内部左中右布局,下方横向浮动排列,大学学习的前端知识点和布局方式都有运用,CSS的代码量也很足、很细致,使用hover来完成过渡效果、鼠标滑过效果等,使用表格、表单补充模块,为方便新手学习页面中没有使用js有需要的可以自行添加。
⚽精彩专栏推荐
❤ 【作者主页——获取更多优质源码】 ❤ 【web前端期末大作业——毕设项目精品实战案例(1000套)】
文章目录
一、网页介绍一、网页效果二、代码展示1.HTML结构代码 隣2.CSS样式代码
三、个人总结四、更多干货
一、网页介绍
1 网页简介:此作品为学生个人主页网页设计题材,HTML+CSS 布局制作,web前端期末大作业,大学生网页设计作业源码,这是一个不错的网页制作,画面精明,代码为简单学生水平, 非常适合初学者学习使用。
2.网页编辑:网页作品代码简单,可使用任意HTML编辑软件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++ 等任意html编辑软件进行运行及修改编辑等操作)。
3.知识应用:技术方面主要应用了网页知识中的: Div+CSS、鼠标滑过特效、Table、导航栏效果、Banner、表单、二级三级页面等,视频、 音频元素 、Flash,同时设计了Logo(源文件)所需的知识点。
一、网页效果
二、代码展示
1.HTML结构代码 隣
代码如下(示例):以下仅展示部分代码供参考~
四川成都
一座来了就不想走的城市
名称由来
“成都”来历,据《太平寰宇记》记载,是借用西周建都的历史经过,取周王迁岐,一年而所居成聚,二年成邑,三年成都而得名蜀都。
蜀语成都二字的读音就是蜀都。成者毕也、终也,成都的含义就是蜀国终了的都邑,或者说最后的都邑。
最早“成都”二字
别名
蓉城、锦城、芙蓉城、锦官城、天府之国
市花与市树
地理环境>>
成都市地处四川盆地西部,青藏高原东缘,东北与德阳市、东南与资阳市毗邻,南面与眉山市相连,西南与雅安市、西北与阿坝藏族羌族自治州接壤;
地理位置介于东经102°54′~104°53′、北纬30°05′~31°26′之间。2016年,全市土地面积为14335平方千米,市区面积为4241.81平方千米,其中建成区面积931.58平方公里。
行政区划>>
成都市辖20个县级行政区划单位(市辖区12,县级市5,县3),261个乡级行政区划单位(街道161,镇100)。面积14335平方千米,人口1633万人。
邂逅成都
2.CSS样式代码
*{
margin: 0;
padding: 0;
}
.header{
background-color: black;
color: white;
height: 80px;
}
.content{
width: 90%;
margin: 0 auto;
overflow: hidden;
}
.header-left{
width: 30%;
float: left;
}
.header-left h3{
color: gray;
}
.header-mid{
width: 40%;
float: left;
font-size: large;
}
.header-mid ul{
list-style: none;
overflow: hidden;
}
.header-mid ul li{
float: left;
width: 25%;
text-align: center;
}
.header-mid ul li.active a{
color: red;
}
.header-mid a{
color: white;
text-decoration: none;
line-height: 80px;
}
.header-right{
width: 30%;
float: left;
}
.header-right button{
width: 100px;
height: 40px;
margin-top: 20px;
border-radius: 10px;
background-color: transparent;
color: white;
cursor: pointer;
float: right;
}
.header-right button:hover{
background-color: #c85353;
color: black;
}
.introduction{
background-color: grey;
color: white;
}
.introduction-left{
width: 30%;
float: left;
}
.introduction-left h3{
margin: 100px 0 30px;
font-weight: 300;
font-size: 30px;
}
.introduction-mid{
width: 30%;
float: left;
}
.introduction-right{
width: 40%;
float: right;
}
.introduction-right h3{
margin: 100px 0 30px;
font-weight: 300;
font-size: 30px;
margin-left: 250px;
}
.introduction-right h5{
font-weight: 300;
font-size: 20px;
margin-left: 220px;
}
.place-left{
width: 40%;
float: left;
}
.place-left h2{
font-size: 30px;
font-weight: 400;
margin-right: 20px;
}
.place-left p{
font-size: 20px;
margin-right: 10px;
}
.place-right{
width: 50%;
float: right;
}
.place-right p{
font-size: 20px;
}
.place-right img{
width: 50%;
}
.poetry{
background-color: #333435;
color: white;
padding: 40px 0 0;
}
.poetry p{
font-size: 20px;
}
.food-one {
background-color: white;
padding: 40px 0;
}
.food-one-left{
float: left;
width: 40%;
margin-top: 50px;
}
.food-one-left p {
text-align: center;
font-size: 20px;
margin: 5px;
}
.food-one-left img {
width: 80%;
}
.food-one-right {
float: right;
width: 60%;
}
.food-one-right h1 {
font-size: 40px;
font-weight: 200;
margin-bottom: 20px;
}
.food-one-right hr {
border: 1px solid red;
width: 80px;
margin-bottom: 20px;
}
.food-one-right p {
line-height: 28px;
font-size: 14px;
text-indent: 28px;
margin-bottom: 20px;
}
.food-two {
background-color: white;
padding: 40px 0;
}
.food-two-left{
float: left;
width: 40%;
margin-top: 50px;
}
.food-two-left p {
text-align: center;
font-size: 20px;
margin: 5px;
}
.food-two-left img {
width: 80%;
}
.food-two-right {
float: right;
width: 60%;
}
.food-two-right h1 {
font-size: 40px;
font-weight: 200;
margin-bottom: 20px;
}
.food-two-right hr {
border: 1px solid red;
width: 80px;
margin-bottom: 20px;
}
.food-two-right p {
line-height: 28px;
font-size: 14px;
text-indent: 28px;
margin-bottom: 20px;
}
.food-three {
background-color: white;
padding: 40px 0;
}
.food-three-left{
float: left;
width: 40%;
margin-top: 50px;
}
.food-three-left p {
text-align: center;
font-size: 20px;
margin: 5px;
}
.food-three-left img {
width: 80%;
}
.food-three-right {
float: right;
width: 60%;
}
.food-three-right h1 {
font-size: 40px;
font-weight: 200;
margin-bottom: 20px;
}
.food-three-right hr {
border: 1px solid red;
width: 80px;
margin-bottom: 20px;
}
.food-three-right p {
line-height: 28px;
font-size: 14px;
text-indent: 28px;
margin-bottom: 20px;
}
三、个人总结
一套合格的网页应该包含(具体可根据个人要求而定)
页面分为页头、菜单导航栏(最好可下拉)、中间内容板块、页脚四大部分;所有页面相互超链接,可到三级页面,有5-10个页面组成;页面样式风格统一布局显示正常,不错乱,使用Div+Css技术;菜单美观、醒目,二级菜单可正常弹出与跳转;要有JS特效,如定时切换和手动切换图片新闻;页面中有多媒体元素,如gif、视频、音乐,表单技术的使用;页面清爽、美观、大方,不雷同。网站前端程序不仅要能够把用户要求的内容呈现出来,还要满足布局良好、界面美观、配色优雅、表现形式多样等要求。
四、更多干货
1.如果我的博客对你有帮助、如果你喜欢我的博客内容,请 “点赞” “✍️评论” “收藏” 一键三连哦!
2.❤️【关注我| 获取更多源码 | 优质文章】 带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者,一起探讨 前端 Node 知识,互相学习」!
3.以上内容技术相关问题欢迎一起交流学习
推荐阅读
发表评论