【发布时间】:2017-10-31 14:33:09
【问题描述】:
我有一个 iframe 和一些链接。 我想如果我点击一个链接它会更新 iframe。
echo"<iframe name='vidframe' width='100%' height='360px'
src='http://vidto.me/embed-3t83y76l81ml-640x360.html' frameborder='0' allowfullscreen>
</iframe>";
echo"<a id='kat' target='vidframe' href='http://vidto.me/embed-32j7qctooybv-640x360.html'>
load link2</a>";
我使用这种方法,但是当我单击链接时,它会在新选项卡中打开,而不是在 iframe 中。为了打开 iframe 中的链接,我做了哪些更改?
【问题讨论】: