Abd*_*ein 4 html javascript css iframe jquery
我需要将此 iframe 放入我的页面中,我需要缩放它(变小)
原始页面是http://palweather.ps/temps/days/forecast/120
我尝试了以下代码(我#zoom=75在链接后添加但它不起作用)
<iframe border="0" frameborder="0" height="1300" name="map" src="http://palweather.ps/temps/days/forecast/120#zoom=75" style="width: 100%;" >Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>
Run Code Online (Sandbox Code Playgroud)
小智 5
经过几个小时的尝试让它在 IE8、9 和 10 中工作后,这很有效,这对我来说很有效。
//html
<div class="wrap">
This version works on FF 26, Chrome 32, Opera 18, and IE 9-11.
<iframe class="frame" src="http://time.is"></iframe>
</div>
<div class="wrap">
<iframe class="frame" src="http://www.knowledgecity.com/activities/BUS1058-008/BUS1058-008.html"></iframe>
</div>
Run Code Online (Sandbox Code Playgroud)
//javascript
.wrap {
width: 320px;
height: 192px;
padding: 0;
overflow: hidden;
}
.frame {
width: 1280px;
height: 786px;
border: 0;
-ms-transform: scale(0.25);
-moz-transform: scale(0.25);
-o-transform: scale(0.25);
-webkit-transform: scale(0.25);
transform: scale(0.25);
-ms-transform-origin: 0 0;
-moz-transform-origin: 0 0;
-o-transform-origin: 0 0;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
}
Run Code Online (Sandbox Code Playgroud)
http://jsfiddle.net/AwokeKnowing/yy8yb/