jinlin
2024-08-06 a3e44cefd1d83bde949d14920c9a5d3d17d4386f
1
2
3
4
5
6
7
8
const iframes = document.querySelectorAll('iframe');
[...iframes].forEach((f) => {
  f.addEventListener('load', () => {
    f.contentWindow.QUnit.done(() => {
      f.style.height = (f.contentDocument.body.scrollHeight + 20) + 'px';
    });
  });
});