缩小时界面尺寸不会有变化, 似乎是css固定了, 不过放大时, 尺寸会随之更改.
在ie8+, ff, Chrome 上测试成功.
iframe HTML5*{padding: 0px; margin: 0px;}
html,body,table{width: 100%; height: 100%; overflow: hidden;}
table{border-collapse: collapse;}
td{border: 1px solid #0080FF;}
$(function(){
iframe_onresize();
window.οnresize=iframe_onresize;
})
function iframe_onresize(){
var h = $('#if').height();
$('iframe').css('height',h+'px');
$('.th_note').text('height: '+h+'px');
}
100% X 30PX iframe: | |
LEFT 100PX | |
100% X 30PX |