We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<head> <meta charset="utf-8" /> <title>11</title> <style> *{ margin: 0; padding: 0; } .box{ width: 440px; height: 248px; border: 1px solid #000; margin: 50px auto; position: relative; } .box1{ position: absolute; right: 25px; bottom: 25px; } .content1>li{ float: left; list-style: none; height: 20px; width: 20px; line-height: 20px; display: inline-block; text-align: center; background:#ccc; margin: 5px; } .content>li{ list-style: none; display: none; } .content>.show{ display: block; } .content1>.current{ background: red; } </style> <script src="js/jquery-3.3.1.js"></script> <script> $(function(){ $(".content1>li").mouseenter(function () { $(this).addClass("current"); $(this).siblings().removeClass("current"); var index=$(this).index(); var $li=$(".content>li").eq(zuoye1); $li.siblings().removeClass("show"); $li.addClass("show"); }); }); </script> </head> <body> <div class="box"> <ul class="content"> <li class="show"><img src="img/11.jpg" alt=""></li> <li><img src="img/12.jpg" alt=""></li> <li><img src="img/13.jpg" alt=""></li> <li><img src="img/14.jpg" alt=""></li> </ul> <div class="box1"> <ul class="content1"> <li class="current">1</li> <li>2</li> <li>3</li> <li>4</li> </ul> </div> </div> </body>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: