大佬教程收集整理的这篇文章主要介绍了jquery – html5中使用iframe的框架的替代方法,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<frameset cols="20%,*,"> <frame src="menu.html"> <frame src="events.html"> </frameset><>
模板文件
<html> <head> <title>{insert script variable for titlE}</title> </head> <body> <div class="menu"> {menu items inserted here by server-side scripTing} </div> <div class="main-content"> {main content inserted here by server-side scripTing} </div> </body> </html>
如果您没有完全支持服务器端脚本语言,还可以使用服务器端包含(SSI)。这将允许你做同样的事情 – 即从多个源文档生成单个Web页面。
但是,如果您只想将您的网页的一部分作为单独的“窗口”,您可以在其中加载不一定位于您自己的服务器上的其他网页,则必须使用iframe。
你可以这样模拟你的例子:
框架示例
<html> <head> <title>Frames Test</title> <style> .menu { float:left; width:20%; height:80%; } .mainContent { float:left; width:75%; height:80%; } </style> </head> <body> <iframe class="menu" src="menu.html"></iframe> <iframe class="mainContent" src="events.html"></iframe> </body> </html>
以上是大佬教程为你收集整理的jquery – html5中使用iframe的框架的替代方法全部内容,希望文章能够帮你解决jquery – html5中使用iframe的框架的替代方法所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。