mi

<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8" />
  <title></title>
  <script src="js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
  <style type="text/css">
   ol{
    list-style: none;
    display: inline-block;
    float: right;
    margin-top: -45px;
    margin-right: -25px;
   }
   ol li{
    float: left;
    margin-right: 50px;
    height: 20px;
    color: black;
    font-weight: bold;
   }
   li:hover{
    color: orange;
   }
   img{
    transition: transform 3s;
   }
   img:hover{
    transform: rotate(360deg);
   }
   h2{
    transition: transform 3s;
   }
   h2:hover{
    transform: scale(2,2);
   }
  </style>
 </head>
 <body>
  <div id="">
   <img src="img/无标题.png"/>
   <div id="a1">
    <ol>
     <li id="a1" οnmοusemοve="shop1(0)" >MI Phones</li>
     <li id="a2" οnmοusemοve="shop1(1)" >Redmi Phones</li>
     <li id="a3" οnmοusemοve="shop1(2)" >MI TV</li>
     <li id="a4" οnmοusemοve="shop1(3)" >Smart Devices</li>
     <li id="a5" οnmοusemοve="shop1(4)" >Audio</li>
    </ol>
   </div>
   <table>
    <tr>
     <td><img src="img/无标题.png"/>
     <h2>hhhhhhh</h2>
     </td>
    </tr>
    <tr>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
    </tr>
    <tr>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
    </tr>
    <tr>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
    </tr>
    <tr>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
     <td><img src="img/无标题.png"/><h2>hhhhhhh</h2></td>
    </tr>
   </table>
  </div>
  
  <script type="text/javascript">
   function shop1(a){
    var trs = $("table tr");
    for (var i = 0; i < trs.length; i++) {
     if(i == a){
      $(trs[i]).show();
     }else{
      $(trs[i]).hide();
     }
    }
   }
   $(function(){
    shop1(0);
   })
   
  </script>
 </body>
</html>

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值