test.html 594 B

1234567891011121314151617181920212223
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>Document</title>
  8. </head>
  9. <body>
  10. <script>
  11. var iframe = document.createElement('iframe');
  12. iframe.src = 'http://zhangzhanyu.nfreehost.com/cat.html';
  13. iframe.id = 'catIframe';
  14. iframe.frameBorder = 0;
  15. document.getElementById('blog-news').appendChild(iframe);
  16. </script>
  17. <style>
  18. #catIframe {
  19. position: fixed;
  20. }
  21. </style>
  22. </body>
  23. </html>