• 用DIV+CSS技术设计我的家乡网站(web前端网页制作课作业)南宁绿城之都


    家乡旅游景点网页作业制作 网页代码运用了DIV盒子的使用方法,如盒子的嵌套、浮动、margin、border、background等属性的使用,外部大盒子设定居中,内部左中右布局,下方横向浮动排列,大学学习的前端知识点和布局方式都有运用,CSS的代码量也很足、很细致,使用hover来完成过渡效果、鼠标滑过效果等,使用表格、表单补充模块,为方便新手学习页面中没有使用js有需要的可以自行添加。


    ⚽精彩专栏推荐👇🏻👇🏻👇🏻

    【作者主页——🔥获取更多优质源码】
    【web前端期末大作业——🔥🔥毕设项目精品实战案例(1000套)】


    一、网页介绍📖

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

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

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


    一、网页效果🌌

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


    二、代码展示😈


    1.HTML结构代码 🧱

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

    DOCTYPE HTML>
    
    <html>
    
    <head>
    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    <title>绿城之都-南宁title>
    
    <meta content="绿城之都-南宁" name="keywords" />
    
    <meta content="绿城之都-南宁" name="description" />
    
    <link href="css/base.css" rel="stylesheet" type="text/css">
    
    <link href="css/pagename.css" rel="stylesheet" type="text/css">
    
    <script type="text/javascript" src="js/jquery-1.6.2.min.js">script>
    
    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.js">script>
    
    head>
    
    
    
    <body>
    
    
    
     
    
    <div class="header"> 
    
    	<div class="w1000">
    
        	<p>你好,欢迎光临绿城之都南宁!p>
    
            <div class="contact"><a href="index.html">设为首页a> <a href="index.html">加入收藏a>div>
    
    	div>
    
    div>
    
    
    
    
    
    <div class="w1000">
    
    	<div class="header_bottom">
    
    			<a href="index.html"><img src="images/logo.jpg" width="294" height="49" alt="" title="绿城之都-南宁">a>
    
           		<ul>
    
                	<li><a href="index.html">网站首页a>li>       
    
                    <li><a href="template/historic.html">历史a>li>     
    
                    <li><a href="template/beautiful.html">风景a>li>        
    
                    <li><a href="template/tourism.html">旅游a>li>      
    
                    <li><a href="template/delicacy.html">美食a>li>      
    
                    <li><a href="template/new.html">动态a>li>      
    
                    <li><a href="template/leave.html">留言a>li>   
    				
    				 <li><a href="template/about.html">团队介绍a>li>      
    
                    <li><a href="template/connection.html">联系我们a>li>
    
         		ul>  
    
        div>       
    
    div>
    
    
     
    
    
    <div class="container"> 		
    
    		
    
    		<div class="banner"> 
    
                <div class="bd">
    
                    <ul>
    
                        <li style="background:url(images/banner_4.jpg) no-repeat center top;">li>
    
                        <li style="background:url(images/banner_2.jpg) no-repeat center top;">li>
    
                      
    
                    ul>
    
                div>
    
                <div class="hd">
    
                    <ul>
    
                        <li>li>
    
                        <li>li>
    
                    ul>
    
                div>
    
                <a class="prev" href="javascript:void(0)">a>
    
                <a class="next" href="javascript:void(0)">a>
    
            div>
    		  
            <script type="text/javascript">jQuery(".banner").slide({ titCell:".hd ul", mainCell:".bd ul", effect:"fold",delayTime:1000,interTime:5000,autoPlay:true, autoPage:true, trigger:"click" });script>
    
    		 
    
    		
    
    		
    
    		<div class="content"> 
    
    			<p class="p_tit1">走进南宁p>	
    
    			<ul class="ul_jishu clearfix">
    
                	<li class="fl">
    
                    	<a href="template/introduce.html"><img src="images/pic_1.jpg" width="291" height="126" alt="" title="">a>
    
    <p>
                        	<a href="template/introduce.html">南宁简介a>
                        南宁,简称“邕”,是广西壮族自治区首府,全区政治、经济、交通、科教文卫、金融和信息中心,是中国面向东盟开放合作的前沿城市、中国—东盟博览会永久举办地、北部湾经济区核心城市、国家“一带一路”有机衔接的重要门户城市。   p>
    
                    li>
    
                	<li class="fl ml20">
    
                    	<a href="template/Culture.html"><img src="images/pic_2.jpg" width="291" height="126" alt="" title="">a>
    
    <p>
                        	<a href="template/Culture.html">南宁文化a>
                            南宁别称绿城、凤凰城、五象城。旅游资源丰富,北连桂林,南接北海,构成了广西的黄金旅游带。壮丽的边关风采、浪漫的海滩风貌、迷人的异国情调,星罗棋布的灵山秀水,古朴悠远的古迹故址,山、水、人、情构成南宁多层次的旅游景观。
                        p>
    
                    li>
    
                    <li class="fr">
    
                    	<a href="template/historic.html"><img src="images/pic_3.jpg" width="291" height="126" alt="" title="">a>
    
    <p>
                        	<a href="template/historic.html">南宁历史a>
                           南宁历史悠久,在古代,南宁属于百越领地。秦始皇统一岭南地区后,南宁属于桂林郡。西汉时期,汉武帝又将它置于玉林郡管辖。东晋大兴元年(公元318年),置大兴郡,以南宁为郡治所在地,南宁建制从此开始,至今已有1600多年。p>
    
                    li>
    
                ul>	
    
    
                <div class="feilei">
    
                	<div class="fl1 fldiv">
    
                    	<a href="#"><img src="images/pic_4.jpg" width="75" height="76" alt="" title="">a>
    
                        <p><a href="#">人民公园a>p>
    
                    div>
    
                    <div class="fl2 fldiv">
    
                    	<a href="#"><img src="images/pic_5.jpg" width="75" height="76" alt="" title="">a>
    
                        <p><a href="#">南宁海底世界a>p>
    
                    div>
    
                    <div class="fl3 fldiv">
    
                    	<a href="#"><img src="images/pic_6.jpg" width="75" height="76" alt="" title="">a>
    
                        <p><a href="#">金花茶公园a>p>
    
                    div>
    
                    <div class="fl4 fldiv">
    
                    	<a href="#"><img src="images/pic_7.jpg" width="75" height="76" alt="" title="">a>
    
                        <p><a href="#">五象广场a>p>
    
                    div>
    
                    <div class="fl5 fldiv">
    
                    	<a href="#"><img src="images/pic_8.jpg" width="75" height="76" alt="" title="">a>
    
                        <p><a href="#">地王云顶a>p>
    
                    div>
    
                    <div class="fl6 fldiv">
    
                    	<a href="#"><img src="images/pic_9.jpg" width="75" height="76" alt="" title="">a>
    
                        <p><a href="#">南宁民歌湖游船a>p>
    
                    div>
    
                    <div class="fl7 fldiv">
    
                    	<a href="#"><img src="images/pic_10.jpg" width="75" height="76" alt="" title="">a>
    
                        <p><a href="#">名树博览园a>p>
    
                    div>
    
                div>
    
                <div class="zjfc">
    
                	<p class="p_tit1">秀丽南宁p>
    
                    <div class="picScroll-left">
    
                        <div class="hd">
    
                            <a class="next"><a>
    
                            <a class="prev">>a>
    
                        div>
    
                        <div class="bd">
    
                            <ul class="picList">
    
         
    
                         
    
    
                                                 
    
                       <li>
    
                                    <div class="pic"><img src="images/201410301619396038.jpg" width="231" height="151" />div>
    
                                   
    
                                li>
    
                                                 
    
                       <li>
    
                                    <div class="pic"><img src="images/201410301618110413.jpg" width="231" height="151" />div>
    
                                    
    
                                li>
    
                                                 
    
                       <li>
    
                                    <div class="pic"><img src="images/201410301611286194.jpg" width="231" height="151" />div>
    
                                   
    
                                li>
    
                                                 
    
                       <li>
    
                                    <div class="pic"><img src="images/201410301613498694.jpg" width="231" height="151" />div>
    
                                   
    
                                li>
    
                                                 
    
                       <li>
    
                                    <div class="pic"><img src="images/201410301614494319.jpg" width="231" height="151" />div>
    
                                  
    
                                li>
    
                                                 
    
                       <li>
    
                                    <div class="pic"><img src="images/201410301615449632.jpg" width="231" height="151" />div>
    
                                
    
                                li>
    
                                                 
    
                            ul>
    
                        div>
    
                    div>
    
            		 
    
                    <script type="text/javascript">
    
                    jQuery(".picScroll-left").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"left",autoPlay:true,vis:4,trigger:"click"});
    
                    script>
    			
    
    
                    	
    
                div>
    
    		div>
    
    		 
    
    div>
    
    
    
    <div class="footer"> 
    
    	<p><a href="index.html">首页a> | <a href="template/historic.html">历史a> | <a href="template/beautiful.html">风景a> | <a href="template/tourism.html">旅游a> | <a href="template/delicacy.html">美食a> | <a href="template/new.html">动态a> | <a href="template/leave.html">旅游a>| <a href="template/connection.html">联系我们a>p>
    
    <p>Copyright © 2015-2016 All Rights Reserved 版权所有 XXXXXXXXXXXXXXXXXXp>
      <p>地址:XXXXXXXXXXXXXXXXXX  来源:<a href="http://www.mycodes.net/" target="_blank">源码之家a> p>
      
    div>
    
    
    
     
    
    body>
    
    html>
    
    
    
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143
    • 144
    • 145
    • 146
    • 147
    • 148
    • 149
    • 150
    • 151
    • 152
    • 153
    • 154
    • 155
    • 156
    • 157
    • 158
    • 159
    • 160
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 169
    • 170
    • 171
    • 172
    • 173
    • 174
    • 175
    • 176
    • 177
    • 178
    • 179
    • 180
    • 181
    • 182
    • 183
    • 184
    • 185
    • 186
    • 187
    • 188
    • 189
    • 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196
    • 197
    • 198
    • 199
    • 200
    • 201
    • 202
    • 203
    • 204
    • 205
    • 206
    • 207
    • 208
    • 209
    • 210
    • 211
    • 212
    • 213
    • 214
    • 215
    • 216
    • 217
    • 218
    • 219
    • 220
    • 221
    • 222
    • 223
    • 224
    • 225
    • 226
    • 227
    • 228
    • 229
    • 230
    • 231
    • 232
    • 233
    • 234
    • 235
    • 236
    • 237
    • 238
    • 239
    • 240
    • 241
    • 242
    • 243
    • 244
    • 245
    • 246
    • 247
    • 248
    • 249
    • 250
    • 251
    • 252
    • 253
    • 254
    • 255
    • 256
    • 257
    • 258
    • 259
    • 260
    • 261
    • 262
    • 263
    • 264
    • 265
    • 266
    • 267
    • 268
    • 269
    • 270
    • 271
    • 272
    • 273
    • 274
    • 275
    • 276
    • 277
    • 278
    • 279
    • 280
    • 281
    • 282
    • 283
    • 284
    • 285
    • 286
    • 287
    • 288
    • 289
    • 290
    • 291
    • 292
    • 293
    • 294
    • 295
    • 296
    • 297
    • 298
    • 299
    • 300
    • 301
    • 302
    • 303
    • 304
    • 305
    • 306
    • 307
    • 308
    • 309
    • 310
    • 311
    • 312
    • 313
    • 314
    • 315
    • 316
    • 317
    • 318
    • 319
    • 320
    • 321
    • 322
    • 323
    • 324
    • 325
    • 326
    • 327
    • 328
    • 329
    • 330
    • 331
    • 332
    • 333
    • 334
    • 335
    • 336
    • 337
    • 338
    • 339
    • 340
    • 341
    • 342
    • 343
    • 344
    • 345
    • 346
    • 347
    • 348
    • 349
    • 350
    • 351
    • 352
    • 353
    • 354
    • 355
    • 356
    • 357
    • 358
    • 359
    • 360
    • 361
    • 362
    • 363

    2.CSS样式代码 🏠

    /*CSS reset*/
    
    html { color:#000;}
    
    body {font: 12px/1.231 SimSun, arial, helvetica, clean, sans-serif;}
    
    body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, td { margin:0; padding:0;}
    
    table {}
    
    fieldset, img { border:0; }
    
    address, caption, cite, code, dfn, strong, th, var, optgroup { font-style:inherit; font-weight:inherit; }
    
    em{ font-style:normal;}
    
    b,strong{ font-weight:bold;}
    
    del, ins { text-decoration:none; }
    
    li { list-style:none; }
    
    caption, th { text-align:left; }
    
    h1, h2, h3, h4, h5, h6 { font-size:100%; font-weight:normal; }
    
    q:before, q:after { content:''; }
    
    abbr, acronym { border:0; font-variant:normal; }
    
    sup { vertical-align:baseline; }
    
    sub { vertical-align:baseline; }
    
    legend { color:#000; }
    
    /*input, button, textarea { font-family:inherit; font-size:inherit; font-style:inherit; font-weight:inherit; }*/
    
    input, button, textarea, select { *font-size:100%; }
    
    a,a:visited{color: #0f8f38; text-decoration:none; outline:none; blr:expression(this.onFocus=this.blur());}
    
    a:hover {color:#c00;}
    
    textarea{ resize:none; } 
    
    
    
    
    .pr20 { padding-right:20px; }
    
    .pr30 { padding-right:30px; }
    
    .pr50 { padding-right:50px; }
    
    .pr100 { padding-right:100px; }
    
    
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59

    三、个人总结😊

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

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

    四、更多干货🚀

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

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

    3.以上内容技术相关问题😈欢迎一起交流学习👇🏻👇🏻👇🏻🔥在这里插入图片描述

  • 相关阅读:
    面向计算思维培养的PBL教学模式设计以模式识别课程为例
    web网页设计期末课程大作业:漫画网站设计——我的英雄(5页)学生个人单页面网页作业 学生网页设计成品 静态HTML网页单页制作
    前端周刊第二十五期
    派学车融资、YY学车倒闭,互联网驾培旱涝两重天
    sonarqube的基本使用
    92倒计时自律习惯养成计划打卡-day8
    InnoDB 与 MyISAM的比较(含其他存储引擎)
    电脑硬件销售的设计与实现
    Docker容器:将带UI的程序直接转为Web应用,so easy
    JavaEE - CORS跨域
  • 原文地址:https://blog.csdn.net/m0_73081085/article/details/128011995