jquery fullpage plug-in adds header and tail copyright related

php中世界最好的语言
Release: 2018-05-04 09:20:45
Original
2055 people have browsed it

This time I will bring youjqueryThe fullpage plug-in adds header and tail copyrights related to the jquery fullpage plug-in to add headers and tail copyrights.What are the precautions?What are the following? Let’s take a look at practical cases.

Preface

We create a page through the jquery-fullpage plug-in, and the entire page is full-screen scrolling. However, we want to add a copyright to the last page, which is only about 100px high, without requiring a full screen for the copyright. How to do it?SearchAfter a while, various methods were mentioned. Modify the source code, etc., or write your own code to judge. Dizzy. In fact, the official solution has been provided.

Below, let’s briefly talk about how to implement it

In fact, only the html part is needed to implement it

这里写头部

page1

page2

page3

page4

这里写版权

Copy after login

As above, I won’t talk about the js code. As long as you can run it, there will be no problem. Here you only need to add an fp-auto-height class to the head and bottom.

Isn’t it effective?

Hey, that’s because you onlyquotethe js but not the css. Just quote the following css.

https://github.com/alvarotrigo/fullPage.js/blob/master/dist/jquery.fullpage.css

In fact, the key code is just as follows

.fp-auto-height.fp-section, .fp-auto-height .fp-slide, .fp-auto-height .fp-tableCell{ height: auto !important; } .fp-responsive .fp-auto-height-responsive.fp-section, .fp-responsive .fp-auto-height-responsive .fp-slide, .fp-responsive .fp-auto-height-responsive .fp-tableCell { height: auto !important; }
Copy after login

Summary

Your problem may have been encountered by others before, and someone must have solved it for you. Just be good at using searchindexengines.

fullpage github

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

Summary of vue data transfer method

##Summary of nodejs password encryption processing method

Why can’t I use IP to access the webpack local development environment

The above is the detailed content of jquery fullpage plug-in adds header and tail copyright related. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!