tangtest
.mt-frame-wrap { position: relative; width: 100%;
max-width: 100%; margin: 0; }
.mt-frame-wrap iframe { display: block; width: 100%;
min-height: 640px; border: 0;
box-shadow: 0 10px 40px rgba(0,0,0,.12);
border-radius: 6px; background: #fff; }
(function () {
var frame = document.getElementById('mt-frame');
function resize() {
try {
var d = frame.contentDocument;
var h = Math.max(
d.body.scrollHeight, d.documentElement.scrollHeight,
d.body.offsetHeight, d.documentElement.offsetHeight);
frame.style.height = Math.max(400, h + 24) + 'px';
} catch (e) { /* cross-origin guard; leave min-height */ }
}
frame.addEventListener('load', resize);
setInterval(resize, 1200);
})();