首页 > 分享 > 14. Web前端网页制作 鲜花网店网页设计实例 大学生期末大作业 html+css

14. Web前端网页制作 鲜花网店网页设计实例 大学生期末大作业 html+css

目录

前言

一、网页概述

二、网页效果

三、代码展示

1.xhtml

2.CSS

四、总结

五、更多推荐

前言

本实例以“鲜花”为主题设计,本实例为html+css代码。系统文件种类包含:html结构文件、css网页样式文件。应用三级菜单、点击事件、留言板等,供大家参考。

【关注作者|获取更多源码(2000+个Web案例源码)|优质文章】;您的支持是我创作的动力!看到这里就【点赞收藏博文】,三连支持下吧,3Q!

一、网页概述

2000+案例推荐,主题涵盖30+种类型:

二、网页效果

三、代码展示

1.xhtml

代码如下(示例):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>花卉网店</title>
<meta name="description" content="花卉网店领先品牌,专注鲜花速递服务15年,销量居鲜花礼品网站首位!鲜花网可24小时预订鲜花,同城送花、异地送花服务,网上订花后最快1-3小时即可将鲜花快递上门,送花网站覆盖中国2000多城市!" />
<meta name="keywords" content="花卉网店,中国鲜花礼品网,鲜花,鲜花网,鲜花快递,网上订花送花,中国鲜花网,网上订花,送花网站" />
<link href="css/index.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="web">
            <div class="main">
                <div class="top">
                    <div class="logo"><img src="img/logo.png"></div>
                    <div class="nav">
                        <ul>
                            <li>
                                <a href="index.html">
                                    <h1>首页</h1>
                                    <h2>Home</h2>
                                </a>
                            </li>
                            <li>
                                <a href="store.html">
                                    <h1>店面介绍</h1>
                                    <h2>Store introduction</h2>
                                </a>
                            </li>
                            <li>
                                <a href="product.html">
                                    <h1>产品介绍</h1>
                                    <h2>Product introduction</h2>
                                </a>
                            </li>
                            <li>
                                <a href="learning.html">
                                    <h1>花卉学习</h1>
                                    <h2>Flower learning</h2>
                                </a>
                            </li>
                            <li>
                                <a href="message.html">
                                    <h1>留言板</h1>
                                    <h2>Message Board</h2>
                                </a>
                            </li>
                            <li>
                                <a href="contact.html">
                                    <h1>联系我们</h1>
                                    <h2>Contact Us</h2>
                                </a>
                            </li>
                        </ul>
                    </div>
                    <div class="tright">
                    <div class="xiaotu">
                        <img src="img/ico1.png" />
                        <img src="img/ico2.png" />
                        <img src="img/ico3.png" />
                    </div>
                    </div>
                </div>
                <div class="index-banner"> 
                  <img src="img/banner.jpg" />
                  </div>
                <div class="index-box1">
                    <div class="index-box1-left">
                        <img src="img/img10.jpg" />
                    </div>
                    <div class="index-box1-right">
                        <h1>店面介绍</h1>
                        <h2>Flower shop introduction</h2>
                        <p>浪漫花语,花为物语.回忆悠长.如果你有需要,只要一个电话,我们会及时把美丽的鲜花送到你的手中.爱上花语,爱上生活.我们传递的不仅是一种商品,我们更加传递的是一种生活的艺术,鲜花让我们生活变得更加的美好,我们应该去感受鲜花的清香,享受生活的美好.</p>
                        <p>花卉网店主要经营生日鲜花、爱情鲜花、开业花篮,庆典花篮,求婚鲜花,鲜花盆景,婚礼婚庆鲜花,巧克力花束,卡通花束等.本花店承诺"顾客至上",锐意进取的经营理念.坚持"顾客第一"的原则为广大客户提供优质服务,欢迎广大客户惠顾.</p>

                        <a href="store.html"><div class="index-box1-btn2">点击查看更多</div></a>
                    </div>
                </div>
                <div class="index-tit">
                    <h1>新品推荐</h1>
                    <h2>New Product</h2>
                </div>
                <div class="index-box2">
                    <ul>
                        <li>
                            <img src="img/img9.jpg" />
                            <h1>美丽有约<span>¥208.00</span></h1>
                        </li>
                        <li>
                            <img src="img/img11.jpg" />
                            <h1>香妃<span>¥168.00</span></h1>
                        </li>
                        <li>
                            <img src="img/img12.jpg" />
                            <h1>致美丽的你 <span>¥366.00</span></h1>
                        </li>
                        <li>
                            <img src="img/img13.jpg" />
                            <h1>赢在未来 <span>¥268.00</span></h1>
                        </li>
                        <li class="marr0">
                            <img src="img/img14.jpg" />
                            <h1>感恩有你 <span>¥228.00</span></h1>
                        </li>
                        <li>
                            <img src="img/img15.jpg" />
                            <h1>浪漫告白 <span>¥265.00</span></h1>
                        </li>
                        <li>
                            <img src="img/img16.jpg" />
                            <h1>纯美的时光 <span>¥208.00</span></h1>
                        </li>
                        <li>
                            <img src="img/img17.jpg" />
                            <h1>如初 <span>¥205.00</span></h1>
                        </li>
                        <li>
                            <img src="img/img18.jpg" />
                            <h1>感恩情怀 <span>¥199.00</span></h1>
                        </li>
                        <li class="marr0">
                            <img src="img/img19.jpg" />
                            <h1>甜美公主 <span>¥188.00</span></h1>
                        </li>
                    </ul>
                </div>

            </div>
            <div class="foot">
                <div class="foot-ner">
                    <div class="foot1">
                    <div class="flogo"><img src="img/flogo.png"></div>
                    <div class="ilx">
                        <h1>联系我们</h1>
                        <p>鲜花店客服中心电话:400-888-666</p>
                        <p>联系邮箱33333333@qq.com </p>
                        <p>配送鲜花时间 : 9:00-22:00 </p>
                        <p>16年品牌鲜花店  16年品质口碑,年销200万束</p>
                    </div>
                    <div class="weix">
                        <ul>
                            <li>
                                <img src="img/weima1.jpg" />
                                <P>关注微信更多惊喜</P>
                            </li>

......

2.CSS

代码如下(示例):

@charset "utf-8";
/* CSS Document */
body {
    margin: 0 auto;
    font-size: 14px;
    font-family: "微软雅黑";
    line-height: 22px;
    color: #3d3c3c;
}
div,p,input,ul,li,h1,h2,h3 {
    height: auto;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    list-style: none;
}

a {
    color: #131313;
    text-decoration: none;
}
.marr34{
    margin-right: 34px;    
}
.marr0{
    margin-right: 0px !important;    
}

.xiaotu{
    height:20px;
}
.web{
    width: 100%;
    height: auto;
    overflow: hidden;
    border-top: #498583 5px solid;    
}
.main{
    width: 1200px;
    height: auto;
    overflow: hidden;
    margin: 0 auto;
}
.top{
    height: 80px;
    padding-top: 10px;    
}
.logo{
    width:220px;
    height: 80px;
    float: left;
}
.nav{
    width:780px;
    padding-top: 20px;
    height: 60px;
    float: left;
}
.nav ul{
    padding: 0px;    
}
.nav ul li{
    float: left;
    margin: 0px 15px;
    text-align: center;
}
.nav ul li a{
    width: 100%;
    display: block;
    color:#2f3030;
    padding: 0px 5px;
}
.nav ul li h1{
    font-weight: normal;
    font-size: 18px;
    line-height: 30px;
}
.nav ul li h2{
    font-size: 12px;
    color: #ad9b79;
    font-family: arial;
}

.tright{
    width: 200px;
    height: 80px;
    float: left;    
}
.tright img{
    float:right;
    margin: 0px 9px;
}
.xiaotu {
    height: 20px;
    width: 100%;
    text-align: right;
}
.index-banner{
    width: 1200px;
    height: 560px;
    margin: 0 auto;
    margin-bottom:30px;
     }
.index-box1{
    height: 385px;
    margin-bottom: 87px;
}
.index-box1-left{
    width: 547px;
    float: left;
    margin-right:30px;    
}
.index-box1-left img{
    border: #a9a9a9 1px solid;
}
.index-box1-right{
    width: 623px;
    float: left;
    padding-top: 10px;
}
.index-box1-right h1{
    font-weight: normal;
    height: 50px;
    line-height: 50px;
    font-size: 30px;
}
.index-box1-right h2{
    font-weight: normal;
    height: 35px;
    line-height: 35px;
    margin-bottom: 20px;
    font-size: 18px;
}
.index-box1-right p{
    line-height: 25px;
    font-size: 14px;
    margin-bottom: 10px;
}
.index-box1-btn2{
    width: 167px;
    height: 43px;
    line-height: 43px;
    background: url(../img/btn2.png) no-repeat;
    text-align: center;
    color: #FFFFFF;
    font-size: 16px;
}
.index-tit{
    height: 76px;
    background: url(../img/img8.jpg) no-repeat 0px 20px;
    text-align: center;
    margin-bottom: 35px;
}
.index-tit h1{
    height: 30px;
    line-height: 30px;
    font-weight: normal;
    font-size: 30px;
}
.index-tit h2{
    line-height: 25px;
    height: 25px;
    font-size: 16px;
    font-weight: normal;        
}
.index-box2{
    height: 635px;
    margin-bottom: 20px;
}
.index-box2 ul{
    padding: 0px;
}
.index-box2 ul li{
    height: 300px;
    width: 205px;
    float: left;
    margin-right: 43px;    
}
.index-box2 ul li img{
    width: 203px;
    height: 220px;
    border: #e6e6e6 1px solid;
}
.index-box2 ul li h1{
    height: 45px;
    line-height: 45px;
    font-weight: normal;
    font-size: 14px;
}
.index-box2 ul li h1 span{
    color: #cf182c;
    float: right;
}

.foot{
    width: 100%;
    height: 497px;
    background: #000000;
}

......

四、总结

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

五、更多推荐

关注作者|获取更多源码(2000+个网页源码)|优质文章】;您的支持是我创作的动力!看到这里就【点赞收藏博文】,三连支持下吧,3Q!

Web前端网页制作、整站模板、3D炫酷效果、图片展示、文字效果、大学生毕业HTML、期末大作业模板案例等技术内容,有兴趣的联系我交流学习!

更多优质博客文章、网页模板点击以下链接查阅:仙女网页设计-CSDN博客。

相关知识

150.大学生HTML期末大作业 —【鲜花主题网页】 Web前端网页制作 html+css
HTML+CSS网页设计期末课程大作——篮球网页设计(6页) 学校篮球网页制作模板 学生简单体育运动网站设计成品
HTML5期末大作业:鲜花网站设计——网上鲜花网页设计(5页) HTML+CSS+JavaScript 期末作业HTML代码
Web前端期末大作业
用DIV+CSS技术设计的鲜花网站(web前端网页制作课作业)
学生花卉网网页设计作品 学生鲜花网页模板 简单在线花店主页成品 鲜花网页制作 HTML学生花店商城网站作业设计
html5期末大作业鲜花花卉主题网页设计html网页模板源码?
38. ​Web前端网页制作 花店网页设计实例 大学生期末大作业 html+css+js
大学生网页设计作业 html+css+js网上鲜花售卖网站(期末网页设计作业)
大学生网页设计作业——HTML+CSS鲜花静态网页设计

网址: 14. Web前端网页制作 鲜花网店网页设计实例 大学生期末大作业 html+css https://m.huajiangbk.com/newsview538961.html

所属分类:花卉
上一篇: Web大学生网页作业成品——花主
下一篇: 鲜花网页设计图片大全