<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="//work6.kr/plugin/plugin_link/29"></script> <style> #test{ margin:0 auto; border:1px solid black; padding:10px; width:400px; height:400px; overflow-y:scroll; } </style> <script> $(function(){ $('#test').thinScrollbar(); }); </script> <div id="test"> 내용 </div>
설치방법
1. Line1 : 제이쿼리를 설치 및 연결 합니다.
2. Line2 : 플러그인 사용하기 후 도메인을 등록 합니다. 코드를 복사 그리고 붙여넣기 합니다.
3. Line5 ~ 12 : 스타일을 복사 그리고 붙여넣기 합니다. 웹 사이트에 맞게 수정 합니다.
4. Line17 ~ 19 : 스크립트를 복사 그리고 붙여넣기 합니다.
Install
1. Line1: Install and connect to jquery.
2. Line2: Register the domain after using the plug-in. Copy and paste code.
3. Line 5 ~ 12: Copy and paste the style. Modify it to fit your website.
4. Line17 ~ 19: Copy and paste the script.