<html> <head>  <style>   body {    margin-left: 0px;    margin-top: 0px;    margin-right: 0px;    margin-bottom: 0px;    overflow: hidden;   }  </style> </head> <body>  <iframe src="http://gongkai.kaipuyun.cn/databaseInfo/index" width='100%' height='100%' frameborder='0' name="_blank " id="_blank "></iframe> </body></html>

效果图:

页面中iframe中嵌入一个跨域的页面,让这个页面按照嵌入的页面宽高大小显示的方式 iframe嵌套的页面不可以编辑的问


当发现一个iframe嵌套的页面不可以编辑的时候,解决办法是:

<html><head>  </head><body><iframe src=""001.htm"" id=""SendMsg""  width=""100%"" height=""120px"" ></iframe><script>  document.getElementById(""SendMsg"").contentWindow.document.body.contentEditable= "true";   </script></body></html>


           

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2021-07-14
  • 2021-06-06
  • 2021-05-08
猜你喜欢
  • 2021-05-28
  • 2021-11-13
  • 2021-10-17
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
相关资源
相似解决方案