2013-08-23 2 views
1

"이미지를로드 할 수 없습니다."라는 이유로 웅장한 팝업 작업을 할 수 없습니다. 이미지 URL은 "정의되지 않음"입니다.굉장한 팝업 : "이미지를로드 할 수 없습니다."이미지 URL을 정의하지 않았습니다.

<div class="album"> 
    <a href="http://lorempixel.com/1024/768/?a=1"> 
     <img src="http://lorempixel.com/168/168/?a=1" /> 
    </a> 
    <a href="http://lorempixel.com/1024/768/?a=2"> 
     <img src="http://lorempixel.com/168/168/?a=2" /> 
    </a> 
    <a href="http://lorempixel.com/1024/768/?a=3"> 
     <img src="http://lorempixel.com/168/168/?a=3" /> 
    </a> 
</div> 

<script> 
    $(function() { 
     $('div.album').magnificPopup({ type: 'image' }); 
    }); 
</script> 

http://jsfiddle.net/8vTYf/2/

+0

귀하의 피들에 아무것도 없습니다 ... – Pointy

+0

@Pointy : 죄송합니다, 지금은 괜찮을 것입니다. – clime

답변

10

가 코드를 변경 :

$(function() { 
    $('div.album').magnificPopup({delegate: 'a', type: 'image' }); 
}); 

으로

http://dimsemenov.com/plugins/magnific-popup/documentation.html#initializing_popup에서에게 문제는 당신이 링크를 포함하는 대신 'A'요소의 컨테이너 언급했다 이미지에.

+0

물론입니다. 그 대표를 놓쳤습니다. 고맙습니다. – clime

+0

당신이 찾고있는 anwser라면, 당신은 항상 올바른 것으로 태그를 붙일 수 있습니다 ;-) 4 분 안에 –

+0

, 그럴 것입니다. – clime

관련 문제