[JavaScript] 通过JS代码控制iframe居左或者居右显示 →→→→→进入此内容的聊天室

来自 , 2020-02-26, 写在 JavaScript, 查看 95 次.
URL http://www.code666.cn/view/b0285cbf
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. <p>This is some text. This is some text. This is some text.
  6. This is some text. This is some text. This is some text.
  7. This is some text. This is some text. This is some text.
  8. <iframe id="myframe" src="/default.asp">
  9.   <p>Your browser does not support iframes.</p>
  10. </iframe>
  11. This is some text. This is some text. This is some text.
  12. This is some text. This is some text. This is some text.
  13. This is some text. This is some text. This is some text.</p>
  14.  
  15. <script>
  16. document.getElementById("myframe").align="right";
  17. </script>
  18.  
  19. </body>
  20. </html>
  21.  
  22. //javascript/7939

回复 "通过JS代码控制iframe居左或者居右显示"

这儿你可以回复上面这条便签

captcha