starbuzz coffee 网页练习

一、用到的基本知识点

主要用到html中盒模型、浮动、表格布局和表单相关的一些基本知识,和css样式中的一些样式渲染等。

二、效果图

三、主程序代码

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>starbuzz coffee</title>
    <link rel="stylesheet" type="text/css" href="coffee.css">
</head>
<body>
<div id="banxin">
    <header>
        <img src="images1/headerlogo2.gif">
        <img id="right" src="images1/headerSlogan.gif">
    </header>
    <nav>
        <ul>
            <li id="selected"><a href="">HOME</a></li>
            <li><a href="BLOG.html">BLOG</a></li>
            <li><a href="dingdan.html">ORDER</a></li>
            <!-- <li><a href="">RECIPES</a></li>
            <li><a href="">LOCATIONS</a></li> -->
        </ul>
    </nav>
    <div id="tablecontain">
        <div id="tablerow">
            <section id="leftside">
                <h1>BEVERAGES</h1>
                <P>House Blend, $1.49</P>
                <p>Mocha Cafe Latte, $2.35 </p>
                <p>Cappuccino, $1.89 </p>
                <p>Chai Tea, $1.85</P>
                <h1>ELIXIRS</h1>
                <P>We proudly serve elixirs brewed by our friends at the Head First Lounge.</p>
                <p>Green Tea Cooler, $2.99 </p>
                <p>Raspberry Ice Concentration, $2.99 </p>
                <p>Blueberry Bliss Elixir, $2.99</p>
                <p>Cranberry Antioxidant Blast, $2.99 </p>
                <p>Chai Chiller, $2.99 </p>
                <p>Black Brain Brew, $2.99</P>
            </section>
            <section id="main">
                <h1>QUALITY COFFEE, QUALITY CAFFEINE</h1>
                <p>At Starbuzz Coffee, we are dedicated to filling all your caffeine needs through our quality coffees and teas. Sure, we want you to have a great cup of coffee and a great coffee experience as well, but we‘re the only company that actively monitors and optimizes caffeine levels. So stop by and fill your cup, or order online with our new Bean Machine online order form, and get that quality Starbuzz coffee that you know will meet your caffeine standards.</p>
                <p>And, did we mention caffeine? We‘ve just started funding the guys doing all the wonderful research at the Caffeine Buzz. If you want the latest on coffee and other caffeine products, stop by and pay them a visit.</p>
                <h1>OUR STORY</h1>
                <p>"A man, a plan, a coffee bean". Okay, that doesn‘t make a palindrome, but it resulted in a damn good cup of coffee. Starbuzz‘s CEO is that man, and you already know his plan: a Starbuzz on every corner.</p>
                <p>In only a few years he‘s executed that plan and today you can enjoy Starbuzz just about anywhere. And, of course, the big news this year is that Starbuzz teamed up with Head First readers to create Starbuzz‘s Web presence, which is growing rapidly and helping to meet the caffeine needs of a whole new set of customers.</p>
                <h1>STARBUZZ COFFEE BEVERAGES</h1>
                <p>We‘ve got a variety of caffeinated beverages to choose from at Starbuzz, including our House Blend, Mocha Cafe Latte, Cappuccino, and a favorite of our customers, Chai Tea.</p>
                <p>We also offer a variety of coffee beans, whole or ground, for you to take home with you. Order your coffee today using our online Bean Machine, and take the Starbuzz Coffee experience home.</p>

            </section>
            <section id="rightside">
            <div id="tuxing">
                <p>
                <img src="images1/bag.gif"><br>
                    ORDER ONLINE with the

                     <a href="">BEAN MACHINE </a><br>

                     <span id="rightside1">FAST <br>
                     FRESH <br>
                     TO YOUR DOOR <br>
                     </span>
                </p>
            </div>
                <p>Why wait? You can order all our fine coffees right from the Internet with our new, automated Bean Machine. How does it work? Just click on the Bean Machine link, enter your order, and behind the scenes, your coffee is roasted, ground (if you want), packaged, and shipped to your door.</p>
            </section>
        </div>
    </div>

    <footer>
        <p>? 2012, Starbuzz Coffee</p>
        <p>All trademarks and registered trademarks appearing on this site are the property of their respective owners.</p>
    </footer>
</div>
</body>
</html>

css样式程序

*{
    padding:0;
    margin: 0;
}
body{
    background-color:#b5a789;
    font-family:Georgia, "Times New Roman", Times, serif;
    font-size:   small;
    margin:  0px;
}
header{
    background-color: #675c47;
    margin:10px;
}
#right{

    float:right;
}
nav{
    background-color: #efe5d0;
    margin:0px 10px;
    /*height:30px;*/
}
nav ul{
    list-style-type: none;
    margin:0px;
    padding:5px 0px;

}
nav ul li{
    display: inline;
    padding:5px 10px;
}
 nav ul li a:link,nav ul li a:visited{
    text-decoration: none;
    /*border-bottom:none;*/
    color:#954b4b;
    font-weight:bold;
}
li#selected{
    background-color: #c8b99c;
}
#tablecontain{
    display:table;
    border-spacing: 10px;
}
#tablerow{
    display:table-row;
}
#leftside,#main,#rightside{
    display: table-cell;
    background:       #efe5d0 url(images/background.gif) top left;
    vertical-align: top;
    font-size:        105%;
    padding:   30px 15px 15px       15px;
}
#leftside{
    width:20%;

}

#tuxing{
    text-align: center;
    line-height: 1.8em;
}

#rightside1{
    color: #954b4b;
}
section h1{
    font-size: 120%;
  color:  #954b4b;
}
section p{
    margin:10px 0px;
}
footer{
    background-color: #675c47;
    margin:0px 10px 10px 10px;
    padding:15px;
    text-align: center;
    font-size: 90%;
    color:#efe5d0;
}
#rightside a{
    color: #954b4b;
    text-decoration: none;
    border-bottom: thin dotted #b76666;
}
time{
    line-height: 40px;
}

原文地址:https://www.cnblogs.com/1833lljy/p/8496625.html

时间: 2024-10-11 14:51:41

starbuzz coffee 网页练习的相关文章

【2017.7.27】Html与CSS学习笔记1-3

从23号开始用了4天时间看完了<Head First Html与CSS>这本书,本书讲解方式深入浅出,便于理解,结合习题,便于记忆,是一本不错的入门书.下面是本书的学习笔记: 一.认识HTML HyperText Markup Language,超文本标记语言的缩写.标记文本来告诉浏览器文本的结构. 注释放在<!--和-->之间,浏览器会忽略其中内容. 1.在电脑上创建一个html文件 打开记事本,另存为后缀名为.html,编码为UTF-8. 本地测试,直接在浏览器中打开,可以直接

Head First HTML与CSS(第二版)

P31 显示index.html文件 分别使用Chrome.IE浏览器进行测试时,显示效果不一样.PS:IE浏览器无法正确地显示页面主体周围的边框 1 <html> 2 <head> 3 <title>Starbuzz Coffee</title> 4 <style type="text/css"> 5 body{ 6 background-color:#d2b48c; 7 margin-left:20%; 8 margin-

Head first html and CSS

耽误了很多时间,一直不能确定方向.从今天起,开始从前端学吧.毕竟立刻有成果的东西,还是好学一些.大道理讲了很多,都不如立刻开始做. So,开干! HTML写结构,元素组成:开始标记,内容,结束标记. CSS写样式 <!--样例-starbuzz咖啡--> <html> <head> <title>Starbuzz Coffee</title> <style type="text/css"> body{ backgr

HTML网页编程

前 言 ☆静态页面和动态页面 网站页面分为静态页面和动态页面两种 ? 静态页面:有一个html页面文件保存在服务器上,浏览器要这个页面的时候服务器就把这个页面文件发给浏览器: ? 动态页面:服务器上没有浏览者要看的页面,而是服务器动态生成的HTML页面发给浏览器,动态语言的服务器端可以用C#.VB.Net.PHP.Java.C等编写. ☆HTML学习要求 掌握手写HTML实现一般难度的Web页面的能力(如网站注册表单),为JavaWeb学习打基础.坚持手写HTML. 注:不要把精力放到怎么把界面

网页模板

12款精美的免费 CSS 网页模板下载 这篇文章收集了12款精美的免费CSS网页模板分享给大家,您可以免费下载使用.相信这些漂亮的免费 CSS网页模板 既能够帮助您节省大量的时间和精力,又能有很满意的效果.希望这些免费的CSS网页模板能帮助到您. Coffee ( 演示| 下载 ) CleanBusiness ( 演示| 下载 ) WesternShop ( 演示| 下载 ) Light House ( 演示| 下载 ) Blue Motion ( 演示| 下载 ) Ancient ( 演示| 

CSS美化自己的完美网页

CSS美化自己的完美网页 CSS概述 css样式: css是英文Cascading Style Sheets的缩写,称为层叠样式表,用于对页面进行美化,CSS的可以使页面更加的美观.基本上所有的html页面都或多或少的使用css. CSS 指层叠样式表 (Cascading Style Sheets) 样式定义如何显示 HTML 元素 样式通常存储在样式表中 把样式添加到 HTML 4.0 中,是为了解决内容与表现分离的问题 外部样式表可以极大提高工作效率 外部样式表通常存储在 CSS 文件中

python爬取网页时返回http状态码HTTP Error 418

问题:urllib.error.HTTPError: HTTP Error 418: 问题描述:当我使用Python的request爬取网页时返回了http状态码为418, 错误描述:经过网上查询得知,418的意思是被网站的反爬程序返回的,网上解释为,418 I'm a teapotThe HTTP 418 I'm a teapot client error response code indicates that the server refuses to brew coffee becaus

网页的图像、表格以及列表的使用和制作

一.网页的图像插入 网页的图像标签<img>其中有很多属性 <img src="" alt="图片失效后提示语" title="标题" /> <!--网页图片插入--> src=" "       用于添加图片的链接          alt = ""      当图片失效的时候,提示图片的信息  title = ""      图片的提示     二

在网页中会引入哪些常见的静态资源?

1.JS(.js   .jsx  .coffee  .ts(TypeScript 类 c# 语言   c sharp  语言)) 2.CSS (.css   .less  .scss  .sass(基本不用了)) 3.Images(.jpg  .png  .gif  .bmp  .svg) 4.字体文件(Fonts)(.svg  .ttf  .eot  .woff  .woff2) 5.模板文件(.ejs  .jade  .vue[这是在webpack中定义组件的方式,推荐这么用]) 网页中引入