2014-12-10 63 views
0

我有以下代碼:的fancybox不URL沒有推廣工作

$(document).ready(function() { 
    $(".image").fancybox({ 
      helpers: { 
       title : { 
        type : 'float' 
       } 
      } 
     }); 

}); 
    </script> 

</head> 
<body> 
    <a class="image" href="http://farm4.staticflickr.com/3712/9032543579_1217e6566b_m.jpg" title="Singapore from the air (Andrew Tan 2011)"> 
<img src="http://farm4.staticflickr.com/3712/9032543579_1217e6566b_m.jpg" alt="" /> 

它按預期工作當點擊圖片:

enter image description here

如果重寫的身體像這個:

<a class="image" href="http://localhost:9091/member/createCompany/getOriginalImage/1" title="Singapore from the air (Andrew Tan 2011)"> 
<img src="http://farm4.staticflickr.com/3712/9032543579_1217e6566b_m.jpg" alt="" /> 

我看到下面的結果,當我點擊圖片:

enter image description here

我不明白的問題。請幫忙。

回答