好吧,我没有看到我猜的东西......
我有一个向下链接的按钮:
HTML:
<button id="get-down"><img src="images/arrow-down.png" /></button>
CSS:
#intro #get-down{
        min-width: 4%;
        max-width: 4%;
        position: absolute;
        z-index: -998;
        bottom: 2%;
        left: 46%;
        border: none;
        border-radius: 0;
        visibility: hidden;
        cursor: pointer;
    }
        #intro #get-down > img{
            border: none;
        }
JS:
// Scroll to demo section
$(function(toDemos) {
    $('#get-down').click(function() {
        $.scrollTo('#content', 500);
    });
});
当我把它放在列表元素上时,JS 代码之前工作过。但这应该也能正常工作吧?还是我错过了什么?
非常感谢提前!