581. 大学生HTML5期末大作业 ―【我的家乡莆仙旅游主题响应式网页】 Web前端网页制作 html5+css3+js

目录

一、网页概述

二、网页文件

三、网页效果

四、代码展示

1.html

2.CSS

3.JS

五、总结

1.简洁实用

2.使用方便

3.整体性好

4.形象突出

5.交互式强

六、更多推荐


欢迎光临仙女的网页世界!这里有各行各业的Web前端网页制作的案例样式齐全新颖,并持续更新!感谢CSDN,提供了这么好的知识学习、技术交流的平台,让我们在这里相遇,小伙伴们,来吧,让我们一起开启Web前端网页制作的奇妙之旅!

说起Web前端,大学开启这扇技术之门以来,一切起始于兴趣爱好和专业钻研。自16年中大研究生毕业步入社会工作以来,才真正开启了这段奇妙的旅行!在一次次需求分析、成品交付和客户服务的过程中,进行了一次又一次的知识应用的实践和验证。学以致用,实践出真知!从最初的Web前端的迷途小书童到如今的技术专家,多年的服务客户和服务大学生的实践经验,早就驾轻就熟!

 奇妙之处在于:当你得到客户的认可、公司的赞赏和同事的敬仰,尤其是业余时间为广大的大学生提供各种各样的帮助和指引,学弟学妹们一致好评,认为学姐是他们的榜样的时候,你会发现,知识的应用除了体现自身价值,还能实现自我满足!这种感觉是相当奇妙的!

我在CSDN的奇妙旅行,除了学习其他知识和持续发布优质的网页实例之外,后续时间允许的情况下,我会发布前端相关知识的学习和应用的教程。目前提供的服务类型包括:Web前端网页制作的专题研究辅导网页定制大学生课程作业辅导、毕设辅导网页模板源码教程资料技术咨询,以及其他有偿或无偿的服务。如有需要,欢迎随时咨询!能满足你们所需,是我的荣幸!

非常感谢大家的关注和点赞,你们的关注和点赞是我持续创作的动力,谢谢!


一、网页概述

本实例应用html5+css3+js,响应式布局,可以根据不同的设备屏幕大小自动调整页面布局,提高用户体验;适用于大学生网页课程作业设计等。本网页支持如Dreamweaver、HBuilder、Text 、Vscode 等任意html编辑软件进行编辑修改;支持包括IE、Firefox、Chrome、Safari主流浏览器浏览。


二、网页文件

本网页共包含6个页面:


三、网页效果

以下是本篇文章正文内容,下面案例仅供参考(节选示例):


四、代码展示

1.html

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0">

    <title>首页</title>
    <link rel="stylesheet" href="library/jquery.mobile-1.4.5/jquery.mobile-1.4.5.min.css">
    <link rel="stylesheet" href="library/css/bootstrap.min.css">
    <link rel="shortcut icon" href="xy_favicon.ico">
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/index.css">
</head>

<body>
    <script src="library/jquery-1.11.1/jquery-1.11.1.min.js"></script>
    <script src="library/jquery.mobile-1.4.5/jquery.mobile-1.4.5.min.js"></script>
    <script src="library/js/bootstrap.min.js"></script>
    <div class="container">
        <!-- 导航 -->
        <div data-role="header">
            <div data-role="navbar">
                <ul>
                    <li class="active"><a href="index.html" data-ajax="false" class="ui-icon-home ui-btn-icon-top"><span class="hidden-xs">首页</span></a></li>
                    <li><a href="food.html" data-ajax="false" class="ui-icon-heart ui-btn-icon-top"><span class="hidden-xs">美食</span></a></li>
                    <li><a href="spor.html" data-ajax="false" class="ui-icon-location ui-btn-icon-top"><span class="hidden-xs">景区</span></a></li>
                    <li><a href="culture.html" data-ajax="false" class="ui-icon-refresh ui-btn-icon-top"><span class="hidden-xs">文化</span></a></li>
                    <li><a href="contact.html" data-ajax="false" class="ui-icon-mail ui-btn-icon-top ui-btn ui-btn-inline ui-corner-all ui-shadow"><span class="hidden-xs">信息登记</span></a></li>
                </ul>
            </div>
        </div>
        <!-- 主体 -->
        <div class="main">

            <div class="row">
                <div class="banner col-md-1 col-sm-1 col-xs-1">
                    <img src="images/banner.jpeg" alt="" class=" visible-lg visible-md">
                    <!-- <p class="hidden-lg hidden-md min">闽乡之都</p> -->
                </div>
            </div>
            <!-- 服务导航 -->
            <div class="row sv_nav clearfix" data-role="controlgroup" data-type="horizontal">
                <!-- 购票 -->
                <div class="sv_lt col-md-2 col-sm-2 col-xs-2">
                    <a href="#book" data-icon="info" data-rel="popup" data-transition="flip" class="ui-btn ui-btn-inline ui-corner-all" data-role="button"><img src="images/book.jpg" alt="" class="img-thumbnail">
                        <p class="text-muted">购票</p>
                    </a>
                    <div data-role="popup" id="book" class="ui-content" data-overlay-theme="b" data-dismissible="false">
                        <div data-role="header">
                            <h1>莆田购票务</h1>
                        </div>
                        <div data-role="main" class="ui-content">
                            <form method="post" action="#">
                                <label for="time">发车日期:</label>
                                <input type="date" name="time" id="time">
                                <label for="site">起止站点:</label>
                                <input type="text" name="site" id="site">
                                <label for="money">单张票价:</label>
                                <input type="text" name="money" id="money">
                                <label for="fname">姓名:</label>
                                <input type="text" name="fname" id="fname">
                                <label for="phone">电话:</label>
                                <input type="text" name="phone" id="phone">
                                <label for="id">身份证件</label>
                                <input type="text" name="id" id="id">
                                <input type="button" data-inline="true" value="提交" class="bk_sb">
                            </form>
                        </div>
                        <div data-role="footer">
                            <h1>莆田购票务系统</h1>
                        </div>
                        <a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-icon-delete ui-btn-right ui-btn-icon-notext"></a>
                    </div>
                </div>
                <!-- 旅馆 -->
                <div class="sv_lt col-md-2 col-sm-2 col-xs-2">
                    <a href="#hotel" data-icon="info" data-rel="popup" data-transition="flip" class="ui-btn ui-btn-inline ui-corner-all" data-role="button"><img src="images/hotel.jpg" alt="" class="img-thumbnail">
                        <p class="text-muted">旅馆</p>
                    </a>
                    <div data-role="popup" id="hotel" class="ui-content" data-overlay-theme="b" data-dismissible="false">
                        <div data-role="header">
                            <h1>订房</h1>
                        </div>
                        <div data-role="main" class="ui-content">
                            <form method="post" action="#">
                                <label for="startime">开始住宿:</label>
                                <input type="date" name="startime" id="startime">
                                <label for="endtime">结束住宿:</label>
                                <input type="date" name="endtime" id="endtime">
                                <label for="room">房间号:</label>
                                <input type="text" name="room" id="room">
                                <label for="fname">姓名:</label>
                                <input type="text" name="fname" id="fname">
                                <label for="phone">电话:</label>
                                <input type="text" name="phone" id="phone">
                                <label for="id">身份证件</label>
                                <input type="text" name="id" id="id">
                                <input type="button" data-inline="true" value="提交" class="bk_sb">
                            </form>
                        </div>

...

2.CSS

代码如下(节选示例):

html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%
}

body {
    margin: 0
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
    display: block
}

audio,
canvas,
progress,
video {
    display: inline-block;
    vertical-align: baseline
}

audio:not([controls]) {
    display: none;
    height: 0
}

[hidden],
template {
    display: none
}

a {
    background-color: transparent
}

a:active,
a:hover {
    outline: 0
}

abbr[title] {
    border-bottom: 1px dotted
}

b,
strong {
    font-weight: 700
}

dfn {
    font-style: italic
}

h1 {
    margin: .67em 0;
    font-size: 2em
}

mark {
    color: #000;
    background: #ff0
}

small {
    font-size: 80%
}

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

sup {
    top: -.5em
}

...

3.JS

代码如下(节选示例):

/*! jQuery Mobile 1.4.5 | Git HEADhash: 68e55e7 <> 2014-10-31T17:33:30Z | (c) 2010, 2014 jQuery Foundation, Inc. | jquery.org/license */

! function(a, b, c) { "function" == typeof define && define.amd ? define(["jquery"], function(d) { return c(d, a, b), d.mobile }) : c(a.jQuery, a, b) }(this, document, function(a, b, c) {
    ! function(a) { a.mobile = {} }(a),
    function(a, b) {
        function d(b, c) { var d, f, g, h = b.nodeName.toLowerCase(); return "area" === h ? (d = b.parentNode, f = d.name, b.href && f && "map" === d.nodeName.toLowerCase() ? (g = a("img[usemap=#" + f + "]")[0], !!g && e(g)) : !1) : (/input|select|textarea|button|object/.test(h) ? !b.disabled : "a" === h ? b.href || c : c) && e(b) }

        function e(b) { return a.expr.filters.visible(b) && !a(b).parents().addBack().filter(function() { return "hidden" === a.css(this, "visibility") }).length }
        var f = 0,
            g = /^ui-id-\d+$/;
        a.ui = a.ui || {}, a.extend(a.ui, { version: "c0ab71056b936627e8a7821f03c044aec6280a40", keyCode: { BACKSPACE: 8, COMMA: 188, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, LEFT: 37, PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SPACE: 32, TAB: 9, UP: 38 } }), a.fn.extend({
            focus: function(b) {
                return function(c, d) {
                    return "number" == typeof c ? this.each(function() {
                        var b = this;
                        setTimeout(function() { a(b).focus(), d && d.call(b) }, c)
                    }) : b.apply(this, arguments)
                }
            }(a.fn.focus),
            scrollParent: function() { var b; return b = a.ui.ie && /(static|relative)/.test(this.css("position")) || /absolute/.test(this.css("position")) ? this.parents().filter(function() { return /(relative|absolute|fixed)/.test(a.css(this, "position")) && /(auto|scroll)/.test(a.css(this, "overflow") + a.css(this, "overflow-y") + a.css(this, "overflow-x")) }).eq(0) : this.parents().filter(function() { return /(auto|scroll)/.test(a.css(this, "overflow") + a.css(this, "overflow-y") + a.css(this, "overflow-x")) }).eq(0), /fixed/.test(this.css("position")) || !b.length ? a(this[0].ownerDocument || c) : b },
            uniqueId: function() { return this.each(function() { this.id || (this.id = "ui-id-" + ++f) }) },
            removeUniqueId: function() { return this.each(function() { g.test(this.id) && a(this).removeAttr("id") }) }
        }), a.extend(a.expr[":"], {
            data: a.expr.createPseudo ? a.expr.createPseudo(function(b) { return function(c) { return !!a.data(c, b) } }) : function(b, c, d) { return !!a.data(b, d[3]) },
            focusable: function(b) { return d(b, !isNaN(a.attr(b, "tabindex"))) },
            tabbable: function(b) {
                var c = a.attr(b, "tabindex"),
                    e = isNaN(c);
                return (e || c >= 0) && d(b, !e)
            }
        }), a("<a>").outerWidth(1).jquery || a.each(["Width", "Height"], function(c, d) {
            function e(b, c, d, e) { return a.each(f, function() { c -= parseFloat(a.css(b, "padding" + this)) || 0, d && (c -= parseFloat(a.css(b, "border" + this + "Width")) || 0), e && (c -= parseFloat(a.css(b, "margin" + this)) || 0) }), c }
            var f = "Width" === d ? ["Left", "Right"] : ["Top", "Bottom"],
                g = d.toLowerCase(),
                h = { innerWidth: a.fn.innerWidth, innerHeight: a.fn.innerHeight, outerWidth: a.fn.outerWidth, outerHeight: a.fn.outerHeight };
            a.fn["inner" + d] = function(c) { return c === b ? h["inner" + d].call(this) : this.each(function() { a(this).css(g, e(this, c) + "px") }) }, a.fn["outer" + d] = function(b, c) { return "number" != typeof b ? h["outer" + d].call(this, b) : this.each(function() { a(this).css(g, e(this, b, !0, c) + "px") }) }
        }), a.fn.addBack || (a.fn.addBack = function(a) { return this.add(null == a ? this.prevObject : this.prevObject.filter(a)) }), a("<a>").data("a-b", "a").removeData("a-b").data("a-b") && (a.fn.removeData = function(b) { return function(c) { return arguments.length ? b.call(this, a.camelCase(c)) : b.call(this) } }(a.fn.removeData)), a.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()), a.support.selectstart = "onselectstart" in c.createElement("div"), a.fn.extend({
            disableSelection: function() { return this.bind((a.support.selectstart ? "selectstart" : "mousedown") + ".ui-disableSelection", function(a) { a.preventDefault() }) },
            enableSelection: function() { return this.unbind(".ui-disableSelection") },
            zIndex: function(d) {
                if (d !== b) return this.css("zIndex", d);
                if (this.length)
                    for (var e, f, g = a(this[0]); g.length && g[0] !== c;) {
                        if (e = g.css("position"), ("absolute" === e || "relative" === e || "fixed" === e) && (f = parseInt(g.css("zIndex"), 10), !isNaN(f) && 0 !== f)) return f;
                        g = g.parent()
                    }
                return 0
            }

...


五、总结

设计一个样式美观又人性化的网页,除了具备扎实的专业知识,还需具备美学和人机工程学等相关知识,优秀的网页应具备以下几个特点:

1.简洁实用

尽量以最高效率的方式将用户所要想得到的信息传送给他就是最好的,要去掉所有的冗余的东西;

2.使用方便

要满足使用者的要求,网页适合使用,显示出其功能美;

3.整体性好

围绕一个统一的目标设计,强调整体的功能性; 

4.形象突出

尽量符合网页美的标准,能够使网站的形象得到最大限度的提升,追求雅俗共赏。页面用色协调,布局符合形式美的要求:布局有条理,充分利用美的形式,使网页富有可欣赏性,提高档次。

5.交互式强

发挥网络的优势,想方设法使每个使用者都参与到其中来。


六、更多推荐

关注作者|获取更多源码|优质文章】;Web前端网页制作、大学生毕业设计辅导、期末大作业辅导、模板源码、技术咨询等,有兴趣的联系我!

更多优质博客文章、网页模板点击以下链接查阅:

仙女网页设计-CSDN博客

  关注作者,点赞收藏博文,获取更多源码,Thanks!5000+完整代码,主题涵盖30+种类型:

大学生期末大作业、课程设计、毕业设计、完整代码案例模板、Web前端网页定制、教学课程、学习资料等,有兴趣的添加以下微信交流👇🏻👇🏻👇🏻

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

仙女网页制作

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值