zoukankan      html  css  js  c++  java
  • 下拉菜单

    #s1{150px; height:300px; position:fixed; left:100px; top:100px;}

    .yiji{ 150px; height:35px; background-color:#93C; border:1px solid white; text-align:center; line-height:35px; vertical-align:middle; clear:white; font-weight:bold}

    #aa1{ 150px; display:none}

    .qqq1{ 150px; height:35px; background-color:#0F0; border:1px solid white; text-align:center; line-height:35px; vertical-align:middle; clear:white; font-weight:bold}

    #aa2{ 150px; display:none}

    .yyy2{ 150px; height:35px; background-color:#0F0; border:1px solid white; text-align:center; line-height:35px; vertical-align:middle; clear:white; font-weight:bold}

    #aa3{ 150px; display:none}

    .www2{ 150px; height:35px; background-color:#0F0; border:1px solid white; text-align:center; line-height:35px; vertical-align:middle; clear:white; font-weight:bold}

    div id="s1" style="150px; height:300px">

    <div class="yiji" onclick="caidan('aa1')">

    QQ

    </div>

    <div id="aa1">

    <div class="qqq1">111</div>

         <div class="qqq1">222</div>

          <div class="qqq1">333</div>

        </div>

                <div class="yiji"  onclick="caidan('aa2')">

        YY    

    </div>     

    <div id="aa2">    

    <div class="yyy2">111</div>     

    <div class="yyy2">222</div>      

    <div class="yyy2">333</div>    

    </div>        

    <div class="yiji" onclick="caidan('aa3')">    

    微信     </div>  <div id="aa3">

        <div class="www2">111</div>

         <div class="www2">222</div>

          <div class="www2">333</div>

        </div>

    </div>

    <script type="application/javascript">

    function caidan(d)

    {  

    var aa = document.getElementById(d);

     if(aa.style.display=="block")

     {  

     aa.style.display="none";  

     }   

    else

      {   

     aa.style.display = "block";

      }

     }

    </script>

  • 相关阅读:
    Pycharm的使用秘籍
    python 装饰器
    python继承和重写
    python中一切皆对象及__init__.py文件的使用
    python的参数类型与时序解包
    Jmeter使用计数器生成变量
    python unittest套件加载用例时,出现No tests were found,Empty test suite
    Python 执行tail文件并操作
    go 函数和流程控制
    go 数据类型和操作符
  • 原文地址:https://www.cnblogs.com/hao0/p/6053790.html
Copyright © 2011-2022 走看看