CSS 焦点图 包括4种不同的切换效果
XML/HTML Code
- <section class="cr-container">
- <input id="select-img-1" name="radio-set-1" type="radio" class="cr-selector-img-1" checked/>
- <label for="select-img-1" class="cr-label-img-1">1</label>
- <input id="select-img-2" name="radio-set-1" type="radio" class="cr-selector-img-2" />
- <label for="select-img-2" class="cr-label-img-2">2</label>
- <input id="select-img-3" name="radio-set-1" type="radio" class="cr-selector-img-3" />
- <label for="select-img-3" class="cr-label-img-3">3</label>
- <input id="select-img-4" name="radio-set-1" type="radio" class="cr-selector-img-4" />
- <label for="select-img-4" class="cr-label-img-4">4</label>
- <div class="clr"></div>
- <div class="cr-bgimg">
- <div>
- <span>Slice 1 - Image 1</span>
- <span>Slice 1 - Image 2</span>
- <span>Slice 1 - Image 3</span>
- <span>Slice 1 - Image 4</span>
- </div>
- <div>
- <span>Slice 2 - Image 1</span>
- <span>Slice 2 - Image 2</span>
- <span>Slice 2 - Image 3</span>
- <span>Slice 2 - Image 4</span>
- </div>
- <div>
- <span>Slice 3 - Image 1</span>
- <span>Slice 3 - Image 2</span>
- <span>Slice 3 - Image 3</span>
- <span>Slice 3 - Image 4</span>
- </div>
- <div>
- <span>Slice 4 - Image 1</span>
- <span>Slice 4 - Image 2</span>
- <span>Slice 4 - Image 3</span>
- <span>Slice 4 - Image 4</span>
- </div>
- </div>
- </section>
原文地址:http://www.freejs.net/article_jiaodiantu_437.html