123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Document</title>
- <style>
- * {
- margin: 0;
- padding: 0;
- list-style: none;
- text-decoration: none;
- box-sizing: border-box;
- }
- #container {
- width: 590px;
- height: 470px;
- position: relative;
- margin: 100px auto;
- }
- .choose {
- display: none;
- }
- .active {
- display: block;
- }
- #list {
- overflow: hidden;
- position: absolute;
- right: 10px;
- bottom: 10px;
- }
- #list li {
- width: 25px;
- height: 25px;
- color: #fff;
- background: #00f;
- border-radius: 50%;
- margin-left: 10px;
- text-align: center;
- line-height: 25px;
- font-size: 12px;
- float: left;
- }
- .selected {
- color: #ff0 !important;
- background: #f00 !important;
- }
- .prev,.next {
- width: 50px;
- height: 40px;
- text-align: center;
- line-height: 40px;
- background: plum;
- color: #fff;
- display: none;
- }
- .prev {
- position: absolute;
- left: 0;
- top:200px
- }
- .next {
- position: absolute;
- right: 0;
- top:200px
- }
- </style>
- </head>
- <body>
- <div id="container">
- <div id="imgBox">
- <img class="choose active" src="../../../img/1.jpg" alt="" />
- <img class="choose" src="../../../img/2.jpg" alt="" />
- <img class="choose" src="../../../img/3.jpg" alt="" />
- <img class="choose" src="../../../img/4.jpg" alt="" />
- <img class="choose" src="../../../img/5.jpg" alt="" />
- </div>
- <ul id="list">
- <li class="selected">1</li>
- <li>2</li>
- <li>3</li>
- <li>4</li>
- <li>5</li>
- </ul>
- <!-- -->
- <div class="prev">
- <span><</span>
- </div>
- <div class="next">
- <span>></span>
- </div>
- </div>
- <script src="./6.轮播.js"></script>
- </body>
- </html>
|