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='http://m.cgvv.com.cn/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='http://m.cgvv.com.cn/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. android - NavigationView 的側滑菜單中如何保存新增項(通過程序添加)2. tp5 不同控制器中的變量調用問題3. 微信小程序可以用gulp,webpack嗎?4. mysql服務無法啟動1067錯誤,誰知道正確的解決方法?5. ueditor上傳服務器提示后端配置項沒有正常加載,求助!!!!!6. python - 為什么正常輸出中文沒有亂碼,zip函數之后出現中文編程unicode編碼的問題,我是遍歷輸出的啊。7. 老師 我是一個沒有學過php語言的準畢業生 我希望您能幫我一下8. 這段代碼既不提示錯誤也看不到結果,請老師明示錯在哪里,謝謝!9. php7.3.4中怎么開啟pdo驅動10. 提示語法錯誤語法錯誤: unexpected ’abstract’ (T_ABSTRACT)
