【发布时间】:2015-09-24 16:23:48
【问题描述】:
我是网站领域的新手
我正在尝试更改我的 iframe 中的 src,其中 src 内容是一个表格以及宽度和高度,这使其无法响应
我正在尝试更改取决于视口大小的 src
这是我的代码
<iframe width="100%" height="410" scrolling="yes" frameborder="0" scrolling="no" allowtransparency="true" src="http://tools.fxempire.com/sidebar-quotes.php?instruments=5,10,1,2,4,3&width=375&height=410&text_color=333&text_hover_color=082F60"></iframe>
<div id="fxempire_link" style="width:500px;font-size: 11px;">
The Free Charts are Powered by <a rel="nofollow" style="text-decoration: underline;" target="_blank" href="http://www.fxempire.com">FXEmpire.com</a> - Your Leading Financial Portal</div>
我正在尝试自动更改 src 内的以下宽度
src="http://tools.fxempire.com/sidebar-quotes.php?instruments=5,10,1,2,4,3&width=375&height=410&text_color=333&text_hover_color=082F60"
但我不知道该怎么做
有没有办法做到这一点?我在互联网上发现的都是使用链接或按钮来更改源代码
【问题讨论】:
-
您的网站是否与
fxempire.com在同一个域上运行? -
我正在尝试自动更改 src 内的以下宽度什么时候?在加载期间?调整浏览器大小?
-
@BenM 不,我的网站只是使用他们的网站管理员工具
-
@lshettyl 在加载期间
标签: javascript jquery html css iframe