perfect-scrollbar/examples/iframe.html

23 lines
697 B
HTML
Raw Normal View History

2014-09-11 05:25:37 +08:00
<!DOCTYPE html>
<html>
2014-09-11 05:25:37 +08:00
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
2014-09-11 05:25:37 +08:00
<title>perfect-scrollbar example</title>
<link href="../dist/css/perfect-scrollbar.css" rel="stylesheet">
<script src="../dist/js/perfect-scrollbar.global.js"></script>
<style>
#iframe { width: 100%; min-height: 450px; border: 0; }
html { direction: rtl; }
</style>
2014-09-11 05:25:37 +08:00
</head>
<body>
<iframe src="iframe-content.html" id="iframe"></iframe>
<script>
var iframe = document.querySelector('#iframe');
iframe.onload = function () {
Ps.initialize(iframe.contentDocument.querySelector('#Default'))
};
</script>
2014-09-11 05:25:37 +08:00
</body>
</html>