jinlin
2024-07-26 9b7ee2b8d22f14a0fffefb2ee371e9a655b05c54
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';
    });
  });
});