Add a table example.
This commit is contained in:
parent
81dd8e9eb0
commit
ff3a3c04b2
@ -1,12 +1,10 @@
|
|||||||
<!DOCTYPE HTML>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
|
|
||||||
<title>perfect-scrollbar example</title>
|
<title>perfect-scrollbar example</title>
|
||||||
<link href="../src/perfect-scrollbar.css" rel="stylesheet">
|
<link href="../out/css/perfect-scrollbar.css" rel="stylesheet">
|
||||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
<script src="../out/js/perfect-scrollbar.global.js"></script>
|
||||||
<script src="../src/perfect-scrollbar.js"></script>
|
|
||||||
<style>
|
<style>
|
||||||
#table {
|
#table {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
@ -30,11 +28,6 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript">
|
|
||||||
$(document).ready(function ($) {
|
|
||||||
$('#table tbody').perfectScrollbar();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="table" class="wrapper">
|
<div id="table" class="wrapper">
|
||||||
@ -79,5 +72,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var $ = document.querySelector.bind(document);
|
||||||
|
window.onload = function () {
|
||||||
|
Ps.initialize($('#table tbody'));
|
||||||
|
};
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user