日常练习题

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style>
            /* .a{
                width: 100px;
                height: 100px;
                border: 2px solid red;
                border-bottom-right-radius: 30px;
                border-top-left-radius: 30px;
            } */
            body>div:first-child{
                width: 100px;
                height: 100px;
                border: 2px solid red;
                border-bottom-right-radius: 30px;
                border-top-left-radius: 30px;
            }
            
            
            body>div:nth-child(3){
                width: 100px;
                height: 100px;
                /* border: 2px solid red; */
                border-top: 3px dotted green;
                border-left: 3px solid green;
            }
            /* .nav{
                display: inline-block;
                width: 100px;
                height: 100px;
                border: 2px solid blue;
                font-size: 20px;
                text-align: center;
                line-height: 100px;
                text-decoration: underline;
                font-weight: bold;
            } */
            body>span:nth-of-type(1){
                display: inline-block;
                width: 100px;
                height: 100px;
                border: 2px solid blue;
                font-size: 20px;
                text-align: center;
                line-height: 100px;
                text-decoration: underline;
                font-weight: bold;
            }
            
            
            .ol_first>li{
                list-style: none;
            }
            .ol_first>li::before{
                display: inline-block;
                content:"";
                width: 10px;
                height: 10px;
                background-color: red;
                border-radius: 50%;
                margin-right: 10px;
            }
            .ul_first>li:nth-child(even){
                margin: 10px;
                padding: 10px;
                border: 2px solid blue;
            }
            
            .ol_second>a:link{
                color: green;
                text-decoration: none;
            }
            .ol_second>a:visited{
                color: black;
            }
            .ol_second>a:hover{
                color: red;
                text-decoration: underline;
            }
            .ol_second>a:active{
                color: yellow;
            }
            
            
            *>.ol_second>li{
                border: 2px solid red;
            }
            .ol_second>div{
                border: 2px solid red;
                /* border-top: 10px; */
            }
            .ol_second>a{
                border: 2px solid red;
            }
            .ol_second>li:nth-child(2){
                border-top: 10px;
            }
            
            
            /* .ol_second>div{
                position: absolute;
            } */
            
            
            .ol_second>div{
                width: 80px;
                height: 80px;
                text-align: center;
                line-height: 80px;
                border-radius: 50px;
                text-shadow: 2px 2px 10px blue,
                -2px 2px 10px blue,
                2px -2px 10px blue,
                -2px -2px 10px blue;
                transition: 2s;
                box-shadow: none;
            }
            .ol_second>div:hover{
                width: 70px;
                height: 40px;
                line-height: 40px;
                box-shadow: 2px 2px 10px blue,
                -2px 2px 10px blue,
                2px -2px 10px blue,
                -2px -2px 10px blue;
            }
            
            
            /* #myprogram{
            text-overflow: ellipsis;
            overflow: hidden;
            } */
            
        </style>
    </head>
    <body>
        <!-- <div class="a"></div> -->
        <div></div>
        <!-- <span class="nav"> -->
            <span>哈哈哈哈</span>
        <div></div>
        <span></span>
        <ol class="ol_first">
            <li id="item1">子项1</li>
            <li id="item2">子项2</li>
            <li id="item3">子项3
                <ul class="ul_first">
                    <li id="item21">子项21</li>
                    <li id="item22">子项22</li>
                    <li id="item23">子项23</li>
                </ul>
            </li>
        </ol>
        <ol class="ol_second">
            <li>子项31</li>
            <li>子项32</li>
            <div>div33</div>
            <a href="#">这是一个a链接</a>
        </ol>
        <div>button</div>
        <!-- <p id="myprogram">6</p> -->
    </body>
</html>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值