你的位置:首页 > 软件开发 > 网页设计 > fullpagejs实现的拥有header和foooter的全屏滚动demo/fullpage footer

fullpagejs实现的拥有header和foooter的全屏滚动demo/fullpage footer

发布时间:2017-12-04 23:00:05
fullpagejs实现的拥有header和foooter的全屏滚动,技术要点:给section元素加fp-auto-height类,<!DOCTYPE html><html lang="zh-CN"><head> < ...

fullpagejs实现的拥有header和foooter的全屏滚动,

技术要点:给section元素加fp-auto-height类,

fullpagejs实现的拥有header和foooter的全屏滚动demo/fullpage footer

<!DOCTYPE html><html lang="zh-CN"><head> <meta charset="utf-8"> <title>fullpage footer</title> <link href="https://cdn.bootcss.com/fullPage.js/2.9.5/jquery.fullpage.css" rel="stylesheet"> <script src='/images/loading.gif' data-original="https://cdn.bootcss.com/jquery/1.12.4/jquery.js"></script> <script src='/images/loading.gif' data-original="https://cdn.bootcss.com/fullPage.js/2.9.5/jquery.fullpage.js"></script> <style>  .section {   text-align: center;   font: 30px "Microsoft Yahei";   color: #fff;  }  .header, .footer {   height: 100px;  } </style> <script>  $(function () {   $('#stumpx').fullpage({    sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', '#f90']   });  }); </script></head><body><div id="stumpx"> <div class="section fp-auto-height header">  <h3>第一屏 header</h3> </div> <div class="section">  <h3>第二屏</h3> </div> <div class="section">  <h3>第三屏</h3> </div> <div class="section fp-auto-height footer">  <h3>第四屏 footer</h3> </div></div></body></html>

 

原标题:fullpagejs实现的拥有header和foooter的全屏滚动demo/fullpage footer

关键词:JS

JS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。