2010-12-08 45 views
0

I am using supersized plugin to have a rotating fullscreen image background with <a>s. But as it sits behind my site content it can't be clicked. So i was wondering if it is possible to have an <a> be swap to top onrollover and be clickable?可以在<a href always on top by using jquery?

+1

你想要點擊哪些東西,圖像背景或鏈接?你的問題不清楚。 – 2010-12-08 15:19:26

回答

0

嘗試使用:

$(".floating-links").hover(function() { 
    $(this).css({ "z-index": 1000 }); 
}, function() { 
    $(this).css({ "z-index": 0 }); 
}); 
0

如果認爲你需要檢查你的元素的CSS的z-index。

a { 
    z-index: 1000 /* Put in front of other objects */ 
} 

將Z-index想象成Photoshop中的圖層。

相關問題