HTML5不支持frameset一般怎么解決?
問題描述
HTML5不支持frameset一般怎么解決?
問題解答
回答1:HTML5不支持frameset一般怎么解決?-PHP中文網問答-HTML5不支持frameset一般怎么解決?-PHP中文網問答
圍觀一下哦,學習一下。
回答2:使用jQuery的onload方法加載頁面,不過這種方法跳轉多個頁面后,點擊瀏覽器上方的后退前進是無效的,不過可以認為的添加一個返回按鈕。
一般是這樣寫的:
$("#main").load("mainIndex.html",function(){ });
對于頁面,p+css可以實現frame的效果
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>p+css實現frameset效果</title><style type="text/css">.header{border-bottom:1px solid #ccc;margin-bottom:5px;}.MainContainer{min-width:960px;max-width:1600px;}.sidebar{width:180px;float:left;margin-right:-180px;border-right:1px solid #ccc;min-height:500px;padding:5px;}.main{float:left;margin-left:200px;padding:5px;}.content{padding:0 10px;}</style></head><body> <p class="page"><p class="header"> <p id="title"><h1>頂部</h1> </p></p><p class="MainContainer"> <p class="sidebar"> 邊欄 </p> <p id="main" class="main">內容 </p> </p> </p></body></html>
相關文章:
1. golang - 用IDE看docker源碼時的小問題2. docker-compose中volumes的問題3. dockerfile - [docker build image失敗- npm install]4. angular.js - angular內容過長展開收起效果5. 兩個思路:python模擬登陸頁面和模擬操作windows程序窗口提交請求6. 點選多選問題7. jupyter-notebook - Mac下啟動jupyter notebook后沒有Python的選項?8. angular.js - angularjs官網Demo quickstart-master在win10系統中啟動時報錯9. android - 如何實現QQ pad 點擊右側輸入框,只頂右側的布局,左側布局不動10. 用Python調用api之后,沒有輸出該如何解決?

網公網安備