【发布时间】:2015-12-15 20:58:51
【问题描述】:
我有一个使用 Adobe Edge 6 的动画。
我正在尝试将动画包含在iframe 中。该代码在Chrome 和IE 10 上运行良好。但是在 Firefox 上,我在 Adobe Edge 库TypeError: C.getComputedStyle(...) is null -> edge.6.0.0.min.js Line-77 上遇到了一个 javascript 错误。
如果我在Firefox 43 上打开动画页面,它运行良好,我只会在将动画包含在iframe 中时收到错误消息。
动画页面:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<title>Untitled</title>
<!--Adobe Edge Runtime-->
<script type="text/javascript" charset="utf-8" src="/Scripts/edge.6.0.0.min.js"></script>
<style>
.edgeLoad-EDGE-1689000111 {
visibility: hidden;
}
div {
position: absolute !important;
}
</style>
<script>
AdobeEdge.loadComposition('Test', 'EDGE-1689000111', {
scaleToFit: "both",
centerStage: "none",
minW: "0",
maxW: "undefined",
width: "870px",
height: "350px"
}, { dom: [] }, { dom: [] });
</script>
<!--Adobe Edge Runtime End-->
</head>
<body style="margin:0;padding:0">
<div id=" stage" class="EDGE-1689000111">
</div>
</body>
</html>
iframe使用动画页面:
<iframe class="embed-responsive-item" frameborder="0" src="PATH"></iframe>
【问题讨论】:
标签: javascript jquery html adobe-edge