diff --git a/packages/wujie-core/src/effect.ts b/packages/wujie-core/src/effect.ts index 7a25f6b7a..11e3f900b 100644 --- a/packages/wujie-core/src/effect.ts +++ b/packages/wujie-core/src/effect.ts @@ -191,7 +191,8 @@ function rewriteAppendOrInsertChild(opts: { if (ignore && src) { const stylesheetElement = iframeDocument.createElement("link"); stylesheetElement.setAttribute("type", "text/css"); - stylesheetElement.setAttribute("ref", "stylesheet"); + stylesheetElement.setAttribute("rel", "stylesheet"); + stylesheetElement.setAttribute("href", src); rawDOMAppendOrInsertBefore.call(this, stylesheetElement, refChild); manualInvokeElementEvent(element, "load"); } else {