纯CSS幻灯片演示
本例是纯CSS的,非必要还是建议用js的,可以设置的参数更多,效果也更加炫酷,本站有很多焦点图
XML/HTML Code
- <ul class="slides">
- <input type="radio" name="radio-btn" id="img-1" checked>
- <li class="slide-container">
- <div class="slide">
- <img src="images/1.jpg">
- </div>
- <div class="nav">
- <label for="img-6" class="prev">‹</label>
- <label for="img-2" class="next">›</label>
- </div>
- </li>
- <input type="radio" name="radio-btn" id="img-2">
- <li class="slide-container">
- <div class="slide">
- <img src="images/2.jpg">
- </div>
- <div class="nav">
- <label for="img-1" class="prev">‹</label>
- <label for="img-3" class="next">›</label>
- </div>
- </li>
- <li class="nav-dots">
- <label for="img-1" class="nav-dot" id="img-dot-1"></label>
- <label for="img-2" class="nav-dot" id="img-dot-2"></label>
- </li>
- </ul>
原文地址:http://www.freejs.net/article_jiaodiantu_782.html