javascript - 關(guān)于fullpage.js 自動(dòng)高度失效的問題
問題描述
<!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://www.aoyou183.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://www.aoyou183.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代碼地址 復(fù)制啦一份 但是 并沒有出現(xiàn)demo上的效果<貌似 fp-auto-height沒有生效>
求指點(diǎn),求指點(diǎn)
問題解答
回答1:css,js,html都是從官方給的demo中復(fù)制的 ,引用的fullpage.js,fullpage.css也是從GitHub上下載的 為啥沒有出現(xiàn) 官方demo的效果呢
相關(guān)文章:
1. pip安裝提示Twisted錯(cuò)誤問題(Python3.6.4安裝Twisted錯(cuò)誤)2. html的qq快捷登錄怎么搞?求個(gè)源碼3. linux - python -m參數(shù)4. mysql - 求SQL語句:查詢某個(gè)值介于兩個(gè)字段值之間的記錄。5. python中def定義的函數(shù)加括號(hào)和不加括號(hào)的區(qū)別?6. python - 有哪些預(yù)測算法可以根據(jù)實(shí)時(shí)增量數(shù)據(jù)更新算法并預(yù)測后續(xù)數(shù)據(jù)?7. 編程小白 問關(guān)于python當(dāng)中類的方法的參數(shù)問題8. (JAVA)最近在做到支付寶的一碼多付支付接口,發(fā)現(xiàn)沒有異步回調(diào)通知,需要自己輪詢查詢訂單狀態(tài),這個(gè)需要怎么實(shí)現(xiàn)?9. mysql - select查詢多個(gè)紀(jì)錄的條件怎么寫10. mysql - 分庫分表、分區(qū)、讀寫分離 這些都是用在什么場景下 ,會(huì)帶來哪些效率或者其他方面的好處
