这是我的代码。 我也想知道为什么我的搜索只用一个词。例如,如果我输入“blue sky”,它只会使用 blue 这个词。
</script>
document.write("<iframe src=\http://www.bing.com/search?q=" + decodeURIComponent(search) + "\" width=\"100\%\" height=\"500\">");
document.write("</iframe>");
</script>
最佳答案
只需在 iframe 中添加一个类,您就可以使用 Javascript、JS 和 jQuery、CSS 等操作它...
关于javascript - 我如何在 document.write 中动态更改 iframe 的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14427142/