一、什么是iframe框架
通俗讲就是将一个页面嵌入另一个页面,可以是本地的html,jsp也可以是网址如baidu.com
二、怎么用?
<iframe name="uploadPage" src="/uploadImg.html" width="100%" height="50" marginheight="0" marginwidth="0" scrolling="no" frameborder="0"></iframe>
<iframe name="uploadPage" src="uploadImg.jsp" width="100%" height="50" marginheight="0" marginwidth="0" scrolling="no" frameborder="0"></iframe>
<iframe src="http://www.bootcss.com/" onload="changeFrameHeight()" id="myiframe" scrolling="yes" frameborder="0">
</iframe>
上面三个分别是引入html页面,jsp以及网页,如果是ssm项目且两个页面在同一目录下直接uploadImg.jsp就行了,不然写全相对路径,如果是springboot项目将需要引入的页面放入static静态资源文件中,然后src