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. 主从备份 - 跪求mysql 高可用主从方案2. python - django 里自定义的 login 方法,如何使用 login_required()3. python如何不改动文件的情况下修改文件的 修改日期4. android-studio - Android 动态壁纸LayoutParams问题5. javascript - git clone 下来的项目 想在本地运行 npm run install 报错6. angular.js - 不适用其他构建工具,怎么搭建angular1项目7. mysql主从 - 请教下mysql 主动-被动模式的双主配置 和 主从配置在应用上有什么区别?8. mysql优化 - mysql count(id)查询速度如何优化?9. node.js - 使用 superagent 抓取 UTF-8网站乱码10. sql语句如何按or排序取出记录
