많은 옵션을 시도했지만 아무 효과가 없습니다. 모달 상자에 iframe이를 열고 모든 게시물에 my website 클릭에 이미지에 Iframe 맞추기, 모달로
single.php 워드 프레스와 (Featherlight.js 사용) 문제는 내가 내 이미지에 모달 상자를 맞지 않을 수있다, 난 그냥 크기를 가지고하기로 결정 지금까지 html 코드에.
<div id="post">
<a href="#" data-featherlight="#featherlight-<?php echo get_the_ID(); ?>">
<?php
if (has_post_thumbnail()) {
the_post_thumbnail('post-thumbnails');
}
?>
</a>
<div class="myframe">
<iframe class="lightbox" src="<?php the_permalink(); ?>" width="400" height="600" id="featherlight-<?php echo get_the_ID(); ?>" style="border:none;" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
</div>
자바 스크립트 또는 jquery를 사용하여 가능합니까? 난 단지 HTML, CSS와 약간의 PHP를 알고 있지만 내가해야만한다면 ...
고마워!
좋아, 아마 Ajax를 사용해야 할 것 같습니다 ... – levystore