iframe.html 690 B

12345678910111213141516171819202122
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  5. <title>perfect-scrollbar example</title>
  6. <link href="../dist/css/perfect-scrollbar.css" rel="stylesheet">
  7. <script src="../dist/js/perfect-scrollbar.js"></script>
  8. <style>
  9. #iframe { width: 100%; min-height: 450px; border: 0; }
  10. html { direction: rtl; }
  11. </style>
  12. </head>
  13. <body>
  14. <iframe src="iframe-content.html" id="iframe"></iframe>
  15. <script>
  16. var iframe = document.querySelector('#iframe');
  17. iframe.onload = function () {
  18. Ps.initialize(iframe.contentDocument.querySelector('#Default'))
  19. };
  20. </script>
  21. </body>
  22. </html>