2013-02-28 78 views

回答

1

聽起來好像我們是在一個類似的任務工作。這裏有一個你可能想要看的插件http://www.htmldrive.net/items/show/1036/JQuery-Ajax-Cool-Shopping-cart-effect

在第44行的某處,代碼在相應文本的正下方直接放置點擊縮略圖的行。

$('#cart_wrapper .cart-info').append('<div class="shopp" id="each-'+thisID+'"><div class="label">'+itemname+'</div><div class="shopp-price"> $<em>'+itemprice+'</em></div><span class="shopp-quantity">1</span><img src="remove.png" class="remove" /><br class="all" /></div>'); 

然後在管線110再次某處的代碼把定義的DIV

$("html:not(:animated),body:not(:animated)").animate({scrollTop: targetOffset}, 800,function(){ 
    $('#wrap #detail-'+thisID).slideDown(500); 
    return false; 
}); 

經過文件,看到這一切是如何走到一起,然後分類:G642.44與您的界面中的「盒子」。

+0

該代碼行可能不完全是因爲我對我的代碼版本有所反應,並且礦被破壞(由於自己的原因)。但對於代碼它仍然是原文。 – 2013-02-28 08:36:02

+0

這幫了很大忙。謝謝! – Lightheaded 2013-11-15 06:28:15