1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
| <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>淘宝焦点图</title> <style> * { margin: 0; padding: 0; }
a { text-decoration: none; }
li { list-style: none; }
.tb-promo { position: relative; width: 520px; height: 280px; margin: 100px auto; }
.tb-promo img { width: 520px; height: 280px; }
.prev, .next { position: absolute; top: 50%; margin-top: -15px; width: 20px; height: 30px; line-height: 30px; text-align: center; color: white; background-color: rgba(0, 0, 0, 0.3); }
.prev { left: 0; border-radius: 0 15px 15px 0; }
.next { right: 0; border-radius: 15px 0 0 15px; }
.promo-nav { position: absolute; left: 50%; bottom: 15px; width: 70px; height: 13px; margin-left: -35px; background-color: rgba(255, 255, 255, 0.3); border-radius: 7px; }
.promo-nav li { float: left; width: 8px; height: 8px; background-color: white; border-radius: 4px; margin: 3px; }
.promo-nav .selected { background-color: #ff5000; } </style> </head> <body> <div class="tb-promo"> <img src="image/淘宝轮播图.jpg" alt=""/> <a class="prev" href="#"><</a> <a class="next" href="#">></a> <ul class="promo-nav"> <li class="selected"></li> <li></li> <li></li> <li></li> <li></li> </ul> </div> </body> </html>
|