好吧,我沒有看到的東西我猜...箭頭向下鏈接不起作用
我有一個鏈接向下的按鈕:
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