0
我使用這個旋轉的圖片庫,但無法將圖像鏈接。Rrotating圖像滑塊+鏈接的圖像
http://tympanus.net/codrops/2011/04/28/rotating-image-slider/
當我把圖像,鏈接,滑塊停止工作。
任何想法如何解決這一問題?
我使用這個旋轉的圖片庫,但無法將圖像鏈接。Rrotating圖像滑塊+鏈接的圖像
http://tympanus.net/codrops/2011/04/28/rotating-image-slider/
當我把圖像,鏈接,滑塊停止工作。
任何想法如何解決這一問題?
不要修改html,而要添加一個jQuery點擊事件li
與data-href
屬性。我一直覺得這樣做更安全,因爲這樣的問題
$('#rm_container li').click(function(){
window.location.href = $(this).attr('data-href');
});
<li data-rotation="-5" data-images="rm_container_2" data-href='http://stackoverflow.com' data-transform="rotate(-5deg)" style="-moz-transform: rotate(-5deg);">