** css代码: 1.css.css文件 ```css @charset "utf-8"; /* CSS Document */ body{ font:14px/24px "Microsoft YaHei","微软雅黑"; color:#494949; background-color:#fff; word-wrap:break-word;} *{ margin:0; padding:0;} ul,li{ list-style:none outside;} a{ color:#494949; text-decoration:none;} a:hover{ text-decoration:none;} .btn{ background:none; border:medium none; outline:none; cursor:pointer;} /*外层容器*/ .swiper_box{ width: 640px; height: 300px; padding: 30px 40px; background: #111; margin: 5px auto; position: relative;} /*内容*/ .swiper-container{ height: 300px; width: 640px;} .content-slide{ padding: 20px; color: #fff;} .title{ font-size: 25px; margin-bottom: 10px;} /*前进后退按钮*/ .swiper-button .btn{ width: 17px; height: 30px; background: url(../images/arrows.png) no-repeat; position: absolute; top: 50%; margin-top: -15px;} .swiper-button .prev-btn{ background-position: left top; left: 10px;} .swiper-button .next-btn{ background-position: left bottom; right: 10px;} /*分页器*/ .swiper-pagination{ width: 100%; position: absolute; left: 0; bottom:5px; text-align: center;} .swiper-pagination-switch{ display: inline-block; width: 10px; height: 10px; background: #999; margin: 0 3px; cursor: pointer;} .swiper-active-switch{ background: #fff;} ``` 2.[swiper.min.css](http://www.idangero.us/swiper/ "swiper.min.css") 文件 ** jquery文件 1. jquery.js 2.swiper.min.js ** slide.html ```html slide 图片1 图片2 图片3 公共部分 ```