Result jQuery $(document).ready(function() { //ãƒãƒƒã‚·ãƒ¥ãƒªãƒ³ã‚¯ã®ã‚¢ãƒ³ã‚«ãƒ¼ã‚¿ã‚°ã‚’クリックã™ã‚‹ã¨ãƒžãƒƒãƒã™ã‚‹idã‚’æŒã¤è¦ç´ ã«ã‚¹ã‚¯ãƒãƒ¼ãƒ«ã™ã‚‹ $('a[href^="#"]').click(function(event) { var id = $(this).attr("href"); var offset = 60; var target = $(id).offset().top - offset; $('html, body').animate({scrollTop:target}, 500); event.preventDefault(); return false; }); }); html <div class="navigation"> <a href="#html">HTML</a> <a href="#css">CSS</a> <a h
{{#tags}}- {{label}}
{{/tags}}