【问题标题】:Can I resize an swf object that is coming from an iframe?我可以调整来自 iframe 的 swf 对象的大小吗?
【发布时间】:2018-02-23 06:47:29
【问题描述】:

我想知道是否可以通过 iframe 从远程位置调整正在显示在网站上的嵌入式 swf 对象的大小?

    <style>
embed {
position: relative;
display: block;
width: 100%;
height: 100%;
}
</style>

<div id="myContainer" style="border: 0px solid rgb(201, 0, 1); overflow: hidden; margin: 15px auto; max-width: 2236px; max-height: 836px;">
<iframe scrolling="no" src="http://schools.nyc.gov" style="border: 0px none; margin-left: -233px; height: 479px; margin-top: -152px; width: 747px; " >
</iframe>
</div>

【问题讨论】:

    标签: javascript html css flash iframe


    【解决方案1】:

    没关系,我找到了方法。从另一个 iframe 流式传输该代码。

    <style>
     body {
       transform: scale(2.4);
       transform-origin: 0 0;
       // add prefixed versions too.
    }
    </style>
    <div id="myContainer" style="border: 0px solid rgb(201, 0, 1); overflow: hidden; margin: 15px auto; max-width: 2236px; max-height: 836px;">
    <iframe scrolling="no" src="http://schools.nyc.gov" style="border: 0px none; margin-left: -233px; height: 479px; margin-top: -152px; width: 747px; " >
    </iframe>
    </div>
    

    【讨论】:

      猜你喜欢
      • 2023-03-12
      • 1970-01-01
      • 2013-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多