xyc
2024-08-02 ea744c63bf10f14fe5a51addf37083c384093e21
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';
    });
  });
});