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. javascript - 使用form進行頁面跳轉,但是很慢,如何加一個Loading?2. javascript - ES6規范下 repeat 函數報錯 Invalid count value3. python 計算兩個時間相差的分鐘數,超過一天時計算不對4. angular.js - angularjs 注入模塊報錯 很怪異... 求解惑5. javascript - JS 里面的 delete object.key 到底刪除了什么?6. angular.js - 輸入郵箱地址之后, 如何使其自動在末尾添加分號?7. mysql - 電商如何存儲營業額數據8. java如何生成token?9. html5 - 為什么使使用vue cli 腳手架,post-css 沒有自動對css3屬性自動添加瀏覽器前綴呢?10. javascript - html5的data屬性怎么指定一個function函數呢?
