2011-02-14 113 views

回答

1

添加此

$(".navigation").css("position","relative"); 
$(".navigation").css("z-index","1"); 

,你必須把.navigation欄使用z-index彈出以上。

例子:http://jsfiddle.net/59MWq/9/

也可以嘗試使用地圖css(),像這樣:

$(".navigation").css({"border-left":"1px black solid", 
           "padding-left":"9px", 
           "border-top":"1px black solid", 
           "padding-top":"4px", 
           "border-right":"1px black solid", 
           "padding-right":"9px", 
           "background-color":"white", 
           "padding-bottom":"4px", 
           "border-bottom":"1px white solid", 
           "position":"relative", 
           "z-index":"1"}); 

例子:http://jsfiddle.net/59MWq/10/

+1

或者更好的將使用帶`.addClass()`的類。 – user113716 2011-02-14 15:16:31