doushengyou2617 2017-04-18 17:22
浏览 77

HTML - 导入页面的iframe

I need to import one page to my Wordpress server. And this page is one project with chatbox.

I try use iframe tag, but it does not work, show only one white page inside iframe tag.

I search about that, and some knowledge said it is because I use other host to access and my server use other host.

Reference: here

In this case, if I paste my project (Is one web project) in the same server (host) Wordpress, my application will works fine with iframe tag?

Example, my Wordpress will have this code:

<iframe width="420" height="315" src="http://10.0.1.101:3000" frameborder="0" allowfullscreen></iframe>

I want put one chatbox inside my Wordpress site. My project have some backend and front end in nodejs, I want this project start inside my Wordpress page.

If I did something wrong please let me know. I dont find anything about that. If someone have some suggestions, I accept.

Thanks advance.

  • 写回答

1条回答 默认 最新

  • duanfei8399 2017-04-18 17:30
    关注

    Shouldn't src="10.0.1.101:3000" be src="http://10.0.1.101:3000" ?

    <iframe width="420" height="315" src="http://10.0.1.101:3000" frameborder="0" allowfullscreen></iframe>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程