zoukankan      html  css  js  c++  java
  • 【代码笔记】Web-HTML-布局

    一, 效果图。

    二,代码。

    复制代码
    <!DOCTYPE html>
    <html>
    
    <head>
        <meta charset="utf-8">
        <title>html 列表</title>
    </head>
    
    <body>
        <!--使用div元素的网页布局-->
        <div id="container" style="500px">
            <div id="header" style="">>
                <h1 style="margin-bottom:0">main title o f web page</h1>
            </div>
            <div id="menu" style="height:200px;100px;float:left">
                <b>menu</b>
                <br> html
                <br> css
                <br> javascript
            </div>
            <div id="content" style="height:200px;400px;float:left">
                ontent goes here
            </div>
            <div id="footer" style="clear:both;text-align:center">
                Copyright © W3CSchool.cc
            </div>
            <!--使用table元素的网页布局-->
            <table width="500" border="0">
                <tr>
                    <td colspan="2" style="">>
                        <h1>main title of web page</h1>
                    </td>
                </tr>
                <tr>
                    <td style="100px">
                        <b>menu</b>
                        <br>html
                        <br>css
                        <br>javascript</td>
                    <td style="height:200px;400px">
                        content goes here</td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align:center">
                        Copyright © W3CSchool.cc</td>
                </tr>
            </table>
    </body>
    
    </html>
    复制代码

     

    参考资料:《菜鸟教程》

  • 相关阅读:
    centos编辑文件显示行号
    16.1
    [整理]正睿划水记
    [题解]UVA1519 Dictionary Size
    [题解]CF323C Two permutations
    [题解]CF1527D MEX Tree
    P2216 [HAOI2007]理想的正方形
    CF858D Polycarp's phone book
    ABC214F substrings
    每天一点小知识-20210810
  • 原文地址:https://www.cnblogs.com/yang-guang-girl/p/9854441.html
Copyright © 2011-2022 走看看