zoukankan      html  css  js  c++  java
  • fullpagejs实现的拥有header和foooter的全屏滚动demo/fullpage footer

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

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

    <!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="https://cdn.bootcss.com/jquery/1.12.4/jquery.js"></script>
        <script src="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>
  • 相关阅读:
    浅谈动态开点线段树
    详解二叉查找树(BST)
    数组的随机打乱
    浅谈迭代加深搜索
    浅谈传递闭包问题
    详解权值线段树
    算法竞赛中桶的概念与应用
    NKOJ 1353 图形面积
    并查集 & 最小生成树详细讲解
    【线段树基础】NKOJ 1321 数列操作
  • 原文地址:https://www.cnblogs.com/stumpx/p/7986359.html
Copyright © 2011-2022 走看看