안녕하세요
http://xxx">http://xxx" scrolling="no" marginwidth="0" marginheight="0" border="0">
위 코드 인데요
제 사이트는 가로가 600 입니다.
div에서 width:600px
를 주면 iframe 이미지 오른쪽 100px이 잘려버리네요
이미지를 자르지 않고 600px로 축소 하는 방법이 있을까요?
$('#fr').load(function() { var width = $('.main').width(); $('#fr').contents().find('img').each(function() { if ( $(this).width() > width) $(this).width(width); });});
$('#fr').load(function() {
var width = $('.main').width();
$('#fr').contents().find('img').each(function() {
if ( $(this).width() > width) $(this).width(width);
});
댓글을 작성하려면 로그인이 필요합니다.
iframe 너비가 700 으로 잡혀서 그런 것 같네요.
걍 100%로 줘보세요.
답변을 작성하려면 로그인이 필요합니다.
이 게시물을 신고 하시겠습니까?신고사유를 선택해주세요.
<script>
$('#fr').load(function() {
var width = $('.main').width();
$('#fr').contents().find('img').each(function() {
if ( $(this).width() > 661) $(this).width(660);
});
});
</script>
이렇게 해봤는데 안되네요 ㅜㅜㅜ