首页 > 其他分享 >HTML综合案例分析和实现

HTML综合案例分析和实现

时间:2022-10-25 13:33:05浏览次数:53  
标签:三亚 郭伟明 之旅 yen 699 好宅 案例 HTML 综合

HTML标签-综合案例-分析

案例:旅游网站首页

1.确定使用table来完成布局

2.如果某一行只有一个单元格,则使用<tr><td></td></tr>

 3.如果某一行有多个单元格,则使用

<tr>
    <td>
        <table></table>
    </td>
</tr>    

 

 

 

HTML标签-综合案例-实现

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>旅游网页</title>
</head>
<body>
<!--采用table来完成布局-->
<!--最外层的table,用于整个页面的布局-->
    <table  width="100%" align="center">
        <!--第1行-->
        <tr>
            <td>
                <img src="image/top_banner.jpg" width="100%">
            </td>
        </tr>

        <!--第2行-->
        <tr>
            <td>
                <table width="100%" align="center"><!--嵌套表格-->
                    <tr align="center"><!--align:对齐方式-->
                        <td>
                            <img src="image/logo.jpg" alt="">
                        </td>
                        <td>
                            <img src="image/search.png" alt="">
                        </td>
                        <td>
                            <img src="image/hotel_tel.png" alt="">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>

        <!--第3行-->
        <tr>
            <td>
            <table width="100%" align="center"><!--嵌套表格-->
                <tr bgcolor="#ffd700" align="center" height="45"><!--bgcolor:颜色  align:对齐方式 height:高度-->
                    <td>
                        <a href="">首页</a>
                    </td>

                    <td>
                        门票
                    </td>

                    <td>
                        酒店
                    </td>

                    <td>
                        香港车票
                    </td>

                    <td>
                        出境游
                    </td>

                    <td>
                        国内游
                    </td>

                    <td>
                        港澳游
                    </td>

                    <td>
                        抱团定制
                    </td>

                    <td>
                        全球自由行
                    </td>

                    <td>
                        收藏排行榜
                    </td>
                </tr>
              </table>
            </td>
        </tr>

        <!--第4行-->
        <tr>
            <td>
                <img src="image/banner_3.jpg" alt="" width="100%">
            </td>
        </tr>

        <!--第6行-->
        <tr>
            <td>
                <img src="image/icon_5.jpg" alt="" >
                伟明精选
                <hr color="ffd700" >
            </td>
        </tr>

        <!-- 第6行-->
        <tr>
            <td>
            <table width="95%" align="center">
                <tr>
                    <td>
                        <img src="image/jiangxuan_1.jpg">
                        <p>郭伟明婚房</p>
                        <font color="red">&yen;899</font>
                    </td>

                    <td>
                        <img src="image/jiangxuan_1.jpg">
                        <p>郭伟明婚房</p>
                        <font color="red">&yen;899</font>
                    </td>

                    <td>
                        <img src="image/jiangxuan_1.jpg">
                        <p>郭伟明婚房</p>
                        <font color="red">&yen;899</font>
                    </td>

                    <td>
                        <img src="image/jiangxuan_1.jpg">
                        <p>郭伟明婚房</p>
                        <font color="red">&yen;899</font>
                    </td>
                </tr>
               </table>
            </td>
        </tr>

        <!--第7行-->
        <tr>
            <td>
                <img src="image/icon_6.jpg" alt="">
                国内游
                <hr color="ffd700">
            </td>
        </tr>

        <!--第8行-->
        <tr>
            <td>
                <table width="95%" align="center">
                    <tr>
                        <td rowspan="2">
                            <img src="image/guonei_1.jpg" alt="" width="95%">
                        </td>

                        <td>
                            <img src="image/jiangxuan_2.jpg" height="100%">
                            <p>郭伟明三亚之旅</p>
                            <font color="red">&yen;699</font>
                        </td>

                        <td>
                            <img src="image/jiangxuan_2.jpg">
                            <p>郭伟明三亚之旅</p>
                            <font color="red">&yen;699</font>
                        </td>

                        <td>
                            <img src="image/jiangxuan_2.jpg">
                            <p>郭伟明三亚之旅</p>
                            <font color="red">&yen;699</font>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <img src="image/jiangxuan_2.jpg">
                            <p>郭伟明三亚之旅</p>
                            <font color="red">&yen;699</font>
                        </td>

                        <td>
                            <img src="image/jiangxuan_2.jpg">
                            <p>郭伟明三亚之旅</p>
                            <font color="red">&yen;699</font>
                        </td>

                        <td>
                            <img src="image/jiangxuan_2.jpg">
                            <p>郭伟明三亚之旅</p>
                            <font color="red">&yen;699</font>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>

        <!--第9行-->
        <tr>
            <td>
                <img src="image/icon_7.jpg">
                境外游
                <hr color="ffd700">
            </td>
        </tr>

        <!--第10行-->
        <tr>
            <td>
                <table width="95%" align="center">
                    <tr>
                        <td rowspan="2">
                            <img src="image/jiangwai_1.jpg" width="100%">
                        </td>

                        <td>
                            <img src="image/jiangxuan_3.jpg" height="100%">
                            <p>郭伟明好宅</p>
                            <font color="red">&yen;699</font>
                        </td>

                        <td>
                            <img src="image/jiangxuan_3.jpg">
                            <p>郭伟明好宅</p>
                            <font color="red">&yen;699</font>
                        </td>

                        <td>
                            <img src="image/jiangxuan_3.jpg">
                            <p>郭伟明好宅</p>
                            <font color="red">&yen;699</font>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <img src="image/jiangxuan_3.jpg">
                            <p>郭伟明好宅</p>
                            <font color="red">&yen;699</font>
                        </td>

                        <td>
                            <img src="image/jiangxuan_3.jpg">
                            <p>郭伟明好宅</p>
                            <font color="red">&yen;699</font>
                        </td>

                        <td rowspan="2">
                            <img src="image/jiangxuan_3.jpg">
                            <p>郭伟明好宅</p>
                            <font color="red">&yen;699</font>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>

        <!--第11行-->
        <tr>
            <td>
                <img src="image/footer_service.png" width="100%">
            </td>
        </tr>

        <!--第12行-->
        <tr>
            <td bgcolor="#ffd700" align="center" height="40">
                <font color="gray">
                    四川未央老王教育科技股份有限公司
                    版权所有Copyright 2006-2018&copy;, All Rights Reserved 川ICP备16007882
                </font>
            </td>
        </tr>

    </table>
</body>
</html>

运行结果:

 

标签:三亚,郭伟明,之旅,yen,699,好宅,案例,HTML,综合
From: https://www.cnblogs.com/qihaokuan/p/16824570.html

相关文章

  • Koa扩展之下载文件和访问HTML页面
    下载文件和访问HTML页面示例PS:在项目的根目录新增static文件夹,static文件夹中包含load.html页面和模板文件.xlsx。constkoa=require('koa');constRouter=require(......
  • FlinkSql的窗口使用以及运用案例
    1flinkSQL窗口概述1.1窗口定义:可理解为时间轴,可将无界流切分成有界流1.2窗口分类:TimeWindow:通过时间切割窗口,但是不知道窗口有多少数据滑动窗口滚动窗口......
  • html5使用WebUploader做大文件的分块和断点续传
    ​ 一、概述 所谓断点续传,其实只是指下载,也就是要从文件已经下载的地方开始继续下载。在以前版本的HTTP协议是不支持断点的,HTTP/1.1开始就支持了。一般断点下载时才用......
  • Highcharts之基础饼图案例实现
    <template><divclass="highcharts-container"id="container"ref="leida"style="min-width:400px;max-width:660px;height:400px;margin:0auto"/></temp......
  • FocusBI Django 入门项目案例开发
    Django入门案例开发(中)http://www.cnblogs.com/focusBI/p/7858267.html Django入门案例开发(下)——创建项目应用及模型类   http://www.cnblogs.com/focus......
  • HTML元素大全(1)
    01、基础元素<h1/2/3/4/5/6>标题从大h1到小h6,块元素,有6级标题。是一种标题类语义标签,内置了字体、边距样式。合理使用h标签,主要用于标题,不要为了加粗效果而随意使用。......
  • HTML标签_文本标签2和HTML文本标签_练习
    HTML标签_文本标签2:文本标签:<b>:字体加粗<i>:字体斜体<font>:字体标签<center>:文本居中属性∶color:颜色size:大小face:字体代码示例:<!--加粗标签b-->......
  • HTML
    demo01(3种样式表)  demo02(3种选择器)-   demo03(样式的复合,组合,嵌套)   demo04(a标签)demo05(::) demo06(列表-无序,有序,图片) demo07(display和visibili......
  • R语言、04 案例P143 Go bananas、《商务与经济统计》案例题
    编程教材《R语言实战·第2版》RobertI.Kabacoff课程教材《商务与经济统计·原书第13版》(安德森)P143、案例GoBananas#1生产中断的概率c<-pbinom(4,......
  • Oracle故障案例 | 19C动态监听无法注册实例的处理
    文章目录​​前言​​​​⛳️1.故障现象​​​​⛳️2.故障排查​​​​✨2.1尝试添加静态监听​​​​✨2.1排查local_listener​​​​⛳️3.故障处理​​​​⛳️4.技能......