Php 在<;iframe>;和脚本
如何在Php 在<;iframe>;和脚本,php,html,css,iframe,Php,Html,Css,Iframe,如何在和脚本中进行自动屏幕调整?它们包含指向外部站点的链接 code: <iframe id="tmc-ticker" src="http://themoneyconverter.com/AUD/RateTicker.aspx" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" height="30px" width="460px" style="float:left; margin:-1px 0px 0px
和脚本中进行自动屏幕调整?它们包含指向外部站点的链接
code:
<iframe id="tmc-ticker" src="http://themoneyconverter.com/AUD/RateTicker.aspx" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" height="30px" width="460px" style="float:left; margin:-1px 0px 0px 4px;"></iframe>
<script>
var width='460';
var profile='CMSForexWebQuotes1-B';
</script>
<script id="vtCurrencyPairs" src="http://webcharts.fxserver.com/pairs/js/addActivePairs.js">/**/</script>
<div> <a href="http://www.cmsfx.com"></a> </div>
脚本:
<iframe id="tmc-ticker" src="http://themoneyconverter.com/AUD/RateTicker.aspx" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" height="30px" width="460px" style="float:left; margin:-1px 0px 0px 4px;"></iframe>
<script>
var width='460';
var profile='CMSForexWebQuotes1-B';
</script>
<script id="vtCurrencyPairs" src="http://webcharts.fxserver.com/pairs/js/addActivePairs.js">/**/</script>
<div> <a href="http://www.cmsfx.com"></a> </div>
var宽度='460';
var profile='CMSForexWebQuotes1-B';
/**/
请看一下网站:
放大/缩小尺寸变化。变化
var width='460'代码>至varwidth='100%'代码>。iframe的相同width=“100%”
var宽度='100%';
var profile='CMSForexWebQuotes1-B';
<div class="cmsfxWidgetWrapper" style="width: 460px; height: 346px;">
在上面的代码中,删除宽度:460px
并使其成为宽度:auto
为什么不为iFrame使用100%宽度并使用父宽度来确定实际宽度?我已经尝试了100%,但它没有做任何更改…我如何使用父宽度?这是因为您的帧宽度固定为460px。你需要把它改成自动