vue 中嵌套 iframe, 将要嵌套的文件放在 static 下面:
<iframe src="../../../static/bear.html" width="300" height="300" frameborder="0" scrolling="auto"></iframe>
src 可以使用相对路径, 也可使用服务器根路径 http:localhost:8088/... 等:
<iframe src="https://www.baidu.com/" width="300" height="300" frameborder="0" scrolling="auto"></iframe>
百度页面:
bear 页面
来源: http://www.bubuko.com/infodetail-2866732.html