zoukankan      html  css  js  c++  java
  • 圆形导航

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title></title>
            <style>
                *{margin:0;padding:0}
                ul{list-style:none;position:relative;margin:50px;}
                ul li{200px;height:200px;border-radius:50%;position:absolute;border:5px solid #ccc;text-align:center;line-height:200px;font-size:50px}
                #li1{background:#0ff;}
                #li2{background:#FF0000;left:150px;}
                #li3{background:#f0f;left:300px;}
                #li4{background:#ff3;left:450px;}
                #li5{background:#0f0;left:600px;}
            </style>
        </head>
        <body>
            <ul>
                <li id="li1">Home</li>
                <li id="li2">WIFI</li>
                <li id="li3">Phone</li>
                <li id="li4">setting</li>
                <li id="li5">Twiffer</li>
            </ul>
        </body>
    </html>
    <script src="../sport6.js"></script>
    <script type="text/javascript">
        var list = document.getElementsByTagName("li");
        for( var i = 0 ; i < list.length ; i++ ){
            list[i].onmouseover = function(){
                //this.style.zIndex = 100;
                //操作宽度250 和 top -20
                startMove( this,{"width":250,"top":-20,"zIndex":100} );
            }
            list[i].onmouseout = function(){
                //this.style.zIndex = 0;
                //操作宽度250 和 top -20
                startMove( this,{"width":200,"top":0,"zIndex":0} );
            }
        }
    </script>
  • 相关阅读:
    ARC109C Large RPS Tournament 机智
    ABC186F Rook on Grid 树状数组
    二分查找
    CF1445D. Divide and Sum 组合数
    APP测试方法分享
    面试常见问题
    接口测试基础知识
    接口测试一
    web端测试
    Jmeter简介
  • 原文地址:https://www.cnblogs.com/tis100204/p/10328762.html
Copyright © 2011-2022 走看看