首先在头部添加jQuery的文件,例如<script type="text/javascript" src="jquery.js"></script>; ①滑动到指定ID的元素位置: <script type=