zoukankan      html  css  js  c++  java
  • tab

    <style type="text/css">

    .b_on{}
    .b_off{}
    </style>

    <script type="text/javascript">
            function tabit(tabName, btnId, tabNumber, btnClass) {
                for (i = 0; i < tabNumber; i++) {
                    document.getElementById(tabName + '_div' + i).style.display = 'none';
                    document.getElementById(tabName + '_btn' + i).className = btnClass + 'off';
                }
                document.getElementById(tabName + '_div' + btnId).style.display = 'block';
                document.getElementById(tabName + '_btn' + btnId).className = btnClass + 'on';
            }
    </script>

    <ul>
         <li class="b_on" id="tab_btn0" onclick="tabit('tab',0,3,'b_')">标签1 </li>
         <li class="b_off" id="tab_btn1" onclick="tabit('tab',1,3,'b_')">标签2 </li>
         <li class="b_off" id="tab_btn2" onclick="tabit('tab',2,3,'b_')">标签3 </li>
    </ul>

    <div id="tab_div0"></div>

    <div id="tab_div1" style="display: none;"></div>

    <div id="tab_div2" style="display: none;"></div>

  • 相关阅读:
    Android Native Hook技术(一)
    Android Native Hook技术(二)
    Dalvik源码阅读笔记(一)
    Dalvik源码阅读笔记(二)
    Android反调试笔记
    /dev/mem可没那么简单
    jenkins使用邮件功能
    docker 安装 oracle
    jstack
    docker network
  • 原文地址:https://www.cnblogs.com/xueyuan299/p/1740646.html
Copyright © 2011-2022 走看看