html使用列表 以及div的布局和table的布局

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body style="background-color: darkgray;margin: 0px">
    <!-- 无序列表 -->
    <ul>
        <li>标题1</li>
        <li>标题2</li>
        <li>标题3</li>
    </ul>
    <!--无序列表实体圆-->
    <ul type="disk">
       <li>标题1</li>
       <li>标题2</li>
       <li>标题3</li>
    </ul>
   <!--无序列表空心圆-->
    <ul type = "circle">
        <li>标题1</li>
        <li>标题2</li>
        <li>标题3</li>
    </ul>
    <!--无序列表实体方块-->
    <ul type = "square">
        <li>标题1</li>
        <li>标题2</li>
        <li>标题3</li>
    </ul>
    <hr/>
    <!--------------------------------------------------------------------------------------------->
    <!--有序列表-->
    <ol>
        <li>标题1</li>
        <li>标题2</li>
        <li>标题3</li>
    </ol>
    <ol type ="a">
        <li>标题1</li>
        <li>标题2</li>
        <li>标题3</li>
    </ol>
    <ol type ="A">
        <li>标题1</li>
        <li>标题2</li>
        <li>标题3</li>
    </ol>
    <ol type = "i">
        <li>标题1</li>
        <li>标题2</li>
        <li>标题3</li>
    </ol>
    <ol type = "I">
        <li>标题1</li>
        <li>标题2</li>
        <li>标题3</li>
    </ol>
    <ol start="2">
            <li>标题1</li>
            <li>标题2</li>
            <li>标题3</li>
    </ol>


<hr/>


    <!--------------------------------------------------------------------------------------------->
    <!--列表嵌套-->
    <ul>
        <li>
        <ol>
            <li>嵌套1</li>
            <li>嵌套2</li>
        </ol>
        </li>
        <li>喝喝</li>
    </ul>
    <!--------------------------------------------------------------------------------------------->
    <!--html5布局方式-->
    <!--div布局-->
    <style type = "text/css">
        div#divTop {
              width: 100%;
              height:10%;
              background-color: aqua
        }
        div#divMenu{
            width:30%;
            height:80%;
            float: left;
            background-color: blue
        }
        div#divContent{
            width:70%;
            height:80%;
            background-color: chartreuse;
            float:left
        }
        div#divBottom{
            width: 100%;
            height: 10%;
            background-color: greenyellow;
            clear:both;
        }


    </style>
    <div style = "width:100%;height: 950px;">
        <div id = "divTop" >top</div>
        <div id = "divMenu">menu</div>
        <div id = "divContent">content</div>
        <div id = "divBottom">bottom</div>
    </div>
    <!--table布局 应当通过td设置宽和高-->
    <hr/>
    <br/>
    <table style="width: 100%;height: 950px">
        <tr  style = "background-color: aqua" >
            <td colspan = "2" style ="width: 100%;height: 10%">top</td>
        </tr>
        <tr >
            <td style="background-color:blue;width: 30%;height:80%">
            menu
            </td>
            <td style = "background-color: chartreuse;width: 70%;height: 80%">
                content
            </td>
        </tr>
        <tr style = "background-color: greenyellow;">
            <td colspan = "2" style = "width:100%;height: 10%" > bottom</td>
        </tr>




    </table>






</body>
</html>
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值