HTML5不支持frameset一般怎么解決?
問題描述
HTML5不支持frameset一般怎么解決?
問題解答
回答1:HTML5不支持frameset一般怎么解決?-PHP中文網(wǎng)問答-HTML5不支持frameset一般怎么解決?-PHP中文網(wǎng)問答
圍觀一下哦,學(xué)習(xí)一下。
回答2:使用jQuery的onload方法加載頁面,不過這種方法跳轉(zhuǎn)多個頁面后,點擊瀏覽器上方的后退前進是無效的,不過可以認(rèn)為的添加一個返回按鈕。
一般是這樣寫的:
$("#main").load("mainIndex.html",function(){ });
對于頁面,p+css可以實現(xiàn)frame的效果
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>p+css實現(xiàn)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">內(nèi)容 </p> </p> </p></body></html>
相關(guān)文章:
1. java - 安卓電視盒子取得了root權(quán)限但是不能安裝第三方應(yīng)用,請問該怎么辦?2. 在MySQL中新增字段時,報錯??3. 老哥們求助啊4. css3 - 請問一下在移動端CSS布局布局中通常需要用到哪些元素,屬性?5. javascript - js 寫一個正則 提取文本中的數(shù)據(jù)6. npm鏡像站全新上線7. javascript - vue-router怎么不能實現(xiàn)跳轉(zhuǎn)呢8. javascript - [WDS] Disconnected! 一直重復(fù)出現(xiàn)。9. python - 模擬滑動驗證碼,有源碼,求解10. html5 - angularjs中外部模版加載無法使用
