2013-08-07 2 views
0

jQuery 팝업 창에 세부 정보를 표시하기 위해 프로젝트에서 colorbox를 사용했습니다. 그러나 대상 페이지가 나타나지 않습니다. 당신은 Here에서Colobox iframe에서 페이지가 열리지 않는 이유가 무엇인가요?

<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<link rel="stylesheet" href="css/colorbox.css" type="text/css" /> 
<script src="js/jquery.js" type="text/javascript"></script> 
<script type="text/javascript" src="js/jquery.colorbox.js"></script> 
<script type="text/javascript"> 
$(document).ready(function(e) { 
    $(".iframe").colorbox({iframe:true, width:"70%", height:"70%"}); 
}); 
</script> 
</head> 

<body> 
<a href="http://www.google.com" class="iframe" style="color:#333">Click here</a> 
</body> 
</html> 

을 볼 수
이 코드입니다.
무엇이 문제입니까?

답변

1

다른 사이트만큼 쉽지 않은 iframe에 google.com을 표시하려고합니다. 거의 모든면에서 효과가 있습니다.

자세한 내용은이 읽기 : How to show google.com in an iframe?

0

나는 당신의 목적 모르겠어요하지만 당신은 iframe이 귀하의 웹 사이트에 구글 검색을 포함 할 경우, 당신은 http://www.google.com/custom을 시도 할 수 있습니다. 여기에서 데모를 볼 수 있습니다. http://jsfiddle.net/devchill/LVunZ/

<a href="http://www.google.com/custom" class="iframe" style="color:#333">Click here</a> 

$(".iframe").colorbox({iframe:true, width:"70%", height:"70%"}); 
관련 문제