zoukankan      html  css  js  c++  java
  • html5 选项卡

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>选项卡</title>
          <style>
          *{margin: 0;padding: 0;}
          ul li{
                  padding: 3%;
                  list-style: none;
                  33.3%;
                  float: left;
                  box-sizing: border-box;
              }
              
          ul li img{
                  100%;
                  display: block;
              }
          .pox{
              font-size: 30px;
          }
          .show img{
            50%;        
           padding: 3%;
           }  
              
           @media only screen and (min-960px){
            html{
               font-size: 19px;           
                 }        
            }
           @media only screen and (max-959px){
            html{
               font-size: 15px;
             }
              ul li{
               50%;
               }
               .pox{
                   font-size: 20px;
               }
           }
           @media only screen and (max-767px){
            html{
               font-size: 12px;
             }
             ul li{
               100%;
               float: none;
                }
                 .pox{
                   font-size:12px;
               }
           }         
                         
           .dn{
               display: none;
           }             
     
     
        
        /*html{
            font-size: 20px;
        }*/
        /*.box{
            box-sizing: border-box;
           100%;         
            height: 26.9rem;  乘以根元素10px     
            background:  url(images/caodi.png) no-repeat center top ;
           -webkit-background-size: 100% 100%;
            background-size: 100% 100%;
        }   */
        </style>
    </head>
    <body>
         <div class="pox">
         hello,world!
      </div>
      <div class="box">
          <ul class="ul-Pic TAB" id=".show">        
                <li><img src="images/banner1.png" alt="" ></li>
                <li><img src="images/banner2.png" alt="" ></li>
                <li> <img src="images/banner3.png" alt=""></li>
         </ul>
      </div>
      <div class="show">
          <dl>
              <dt>001</dt>
              <img src="images/g1.jpg" alt="">
          </dl>
      </div>
      <div class="show dn">
           <dl>
              <dt>002</dt>
              <img src="images/g4.jpg" alt="">
          </dl>
      </div>
      <div class="show dn">
           <dl>
              <dt>003</dt>
              <img src="images/g3.jpg" alt="">
          </dl>
      </div>
     
     <script src="js/jquery.js"> </script>
     
     <script>     
     // 鼠标经过选项卡
           $(".TAB li").mousemove(function(){
                var $vv=$(this).parent(".TAB").attr("id");
                $($vv).hide();
                $(this).parent(".TAB").find("li").removeClass("hover");
                var xx=$(this).parent(".TAB").find("li").index(this);
                $($vv).eq(xx).show();
                $(this).addClass("hover");
            });

     // 鼠标点击选项卡
            // $(".TAB_CLIKE li").click(function(){
            //             var $vv=$(this).parent(".TAB").attr("id");
            //             $($vv).hide();
            //             $(this).parent(".TAB").find("li").removeClass("hover");
            //             var xx=$(this).parent(".TAB").find("li").index(this);
            //             $($vv).eq(xx).show();
            //             $(this).addClass("hover");
            //         });
     </script>
    </body>
    </html>

  • 相关阅读:
    Python 队列
    Python 知识要点:input 和 print
    android中ScrollView的setOnClickListener无效
    android.content.res.Resources$NotFoundException: String resource ID #0x1 原因及解决方案
    百度莱茨狗
    机器学习入门——Iris问题
    安卓调用百度地图网页版进行路径规划与导航,只需提供地名
    error:style attribute '@android:attr/windowEnterAnimation' not found 解决方法
    逻辑结构,存储结构,物理结构的区分
    CSDN博客内容中嵌入其他网页
  • 原文地址:https://www.cnblogs.com/liaoliao985786516/p/5585534.html
Copyright © 2011-2022 走看看