我想知道是否可以通过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>
答案 0 :(得分:0)
没关系我找到了办法。从另一个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>