jSlider简洁的幻灯片
XML/HTML Code
- <div class="top">
- <div class="jSlider" id="slider1">
- <div><img src="images/photo1_m.jpg"></div>
- <div><img src="images/photo2_m.jpg"></div>
- <div><img src="images/photo3_m.jpg"></div>
- <div><img src="images/photo4_m.jpg"></div>
- <div><img src="images/photo5_m.jpg"></div>
- <div><img src="images/photo6_m.jpg"></div>
- </div>
- </div>
XML/HTML Code
- <style type="text/css">
- #slider1 {
- width: 100%;
- height: 394px;
- margin: 0 auto;
- border: 7px solid rgba(0, 0, 0, .35);
- box-shadow: 2px 2px 10px 0 rgba(0, 0, 0, .1);
- border-radius: 5px;
- }
- /* responsive rules */
- @media (max-width: 713px) {
- #slider1 {
- width: 100%;
- height: auto; /* reset slider height to automatically fix with the first image height. */
- border: none;
- margin-top: 0;
- -webkit-border-radius: 0;
- border-radius: 0;
- }
- }
- </style>
原文地址:http://www.freejs.net/article_jiaodiantu_788.html