javascript - 关于fullpage.js 自动高度失效的问题
问题描述
<!DOCTYPE html><html xmlns='http://www.w3.org/1999/xhtml'><head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> <title>Auto-height sections size - fullPage.js</title> <link rel='stylesheet' type='text/css' href='https://www.haobala.com/wenda/css/jquery.fullPage.css' /> <script src='http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js'></script> <script type='text/javascript' src='https://www.haobala.com/wenda/js/jquery.fullPage.js'></script> <script type='text/javascript'>$(document).ready(function() { $(’#fullpage’).fullpage({ anchors: [’page1’, ’page2’, ’page3’, ’page4’], sectionsColor: [’yellow’, ’orange’, ’#C0C0C0’, ’#ADD8E6’], });}); </script> <style>.section { text-align:center; font-size: 3em;}.content{ margin:50px} </style></head><body><p id='fullpage'> <p class='section'>One</p> <p class='section'>Two</p> <p class='section fp-auto-height'> <p class='content'>Three</p> </p> <p class='section fp-auto-height'> <p class='content'>Four</p> </p></p></body></html>
这是我的代码 fullpage.js和fullpage.css 都是我从fullpagejs的GitHub地址上下载的;
我按照fullpage给的demo GitHub提供的demo代码地址 复制啦一份 但是 并没有出现demo上的效果<貌似 fp-auto-height没有生效>
求指点,求指点
问题解答
回答1:css,js,html都是从官方给的demo中复制的 ,引用的fullpage.js,fullpage.css也是从GitHub上下载的 为啥没有出现 官方demo的效果呢
相关文章:
1. $fields = $values = [];这条代码一直定义不了,一直报错,老师的源码也是被报错的,执行不了,请问该怎么解决这个问题2. mysql - SQL操作时间的函数?3. python - 求一个在def中可以实现调用本def满足特定条件continue效果的方法(标题说不太清楚,请见题内描述)4. javascript - 用表单提交两个时间段请求后台返回对应数据时出现的一些问题!5. java - mybatis怎么实现在数据库中有就修改,没有就添加6. MYSQL新建用户设置可以远程访问的问题7. angular.js - angularjs的自定义过滤器如何给文字加颜色?8. node.js - nodejs和前端JavaScript 字符串处理结果不一样是什么原因?9. docker-compose中volumes的问题10. docker api 开发的端口怎么获取?
![$fields = $values = [];这条代码一直定义不了,一直报错,老师的源码也是被报错的,执行不了,请问该怎么解决这个问题](http://www.haobala.com/attached/image/news/202205/093622cb60.png)