【发布时间】:2018-02-04 03:33:34
【问题描述】:
我想为我的 iframe 将加载的框设置样式,添加框阴影和高度,但我不希望在用户单击链接之前对它们进行样式设置,因为会有一个空白框放置一个高的高度。
那么如何在用户点击按钮/链接后设置 iframe 的样式?
<a href="https://google.com" onclick="document.getElementById('load-chat');" target="load-chat">Load the page</a>
<iframe style="box-shadow:0px 3px 15px #e4e4e4; border-radius: 10px;" frameborder="0" id="load-chat" name="load-chat" scrolling="0" width="200" height="400"/>
【问题讨论】:
标签: javascript jquery html css iframe