好吧,我没有看到的东西我猜...箭头向下链接不起作用
我有一个链接向下的按钮:
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代码,当我把它放在列表元素上。但是,这应该能够正常工作?或者我错过了什么?
非常感谢提前!
贵公司的所有元素具有相同的ID?所有这些列表元素都是一样的吗?如果是这样,请改为使用班级。 –
你使用哪个插件? Ariel Flesler是滚动吗? – Learner
'$(function(toDemos){...'做什么? – adeneo