안드로이드 개발 질문/답변
(글 수 45,052)
아래와 같이 iframe에서 onLoad가 될 경우 adjustHeight을 실행하여서 iframe를 수정하도록 하였습니다.
alert를 통해서 값을 확인을 해보면 500이 적용되었다고는 하나
실제 크기는 500px가 아니고 처음 값인 100px 입니다.
혹시 어떻게 변경이 가능할까요?
<table>
<tr>
<td>
<iframe id="iframe1" frameborder="0" src=" style="display:none;width:100%;height:100px;border:0;text-align:left;overflow:scroll;overflow-x:hidden" onload="adjustHeight();" />
</td>
</tr>
function adjustHeight()
{
document.getElementById("body_base").style.height=500+"px";
alert(document.getElementById("body_base").style.height);
}