引以以下js
1 2 | <script src="//code.jquery.com/jquery-3.1.1.min.js"></script><script src="js/jquery.stacked-strips.js"></script> |
为您的网页创建一组内容部分。请注意,堆叠的条插件需要多个内容部分才能工作。
1 2 3 4 5 6 7 8 9 | <section> Content 1</section><section> Content 2</section><section> Content 3</section> |
将以下所示的所需CSS样式添加到您的网页。
1 2 3 4 5 6 7 8 9 10 | .fixed { position:fixed; top:0; left:0; width:100%;} .unfixed { position:relative; width:100%;} |
活动的堆叠滚动 ING影响使用默认选项。
1 2 3 4 5 6 7 8 | $('section').stacked_strips({ // start position in pixels. active_position: 50, // or a pixel value strip_size:'full', // add a class to the previous section after_class:false }); |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com