swiper.js插件实现pc端文本上下滑动功能示例(2)

html, body { position: relative; height: 100%; } body { background: #fff; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; color: #000; margin: 0; padding: 0; } .swiper-container { width: 100%; height: 100%; cursor: default; } .swiper-slide { font-size: 20px; height: auto; -webkit-box-sizing: border-box; box-sizing: border-box; padding: 10px; line-height: 2; text-indent: 2em; }

4、js部分:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/c7772c2fd4d8b0760bde2a1e725cafec.html