2010-05-05 87 views
0

如果我在同一个页面上放置一个大iframe,并在大iframe中包含所有内容,那么我可以将搜索结果放到大iframe上吗?iframe中的iframe

它的任何代码?

+0

你能提供关于你的使用场景的更多解释吗?你指的是一个“大iframe”;还有一点iframe?它在哪里?搜索结果来自哪里? – Pops 2010-05-05 19:13:35

+6

另一个iframe中的iframe老实说听起来像一个可怕的想法。 – 2010-05-05 19:15:52

+0

@MitchDempsey不,不,不会坚持。我们必须更深入! – Undefined 2012-08-01 16:14:14

回答

2

如果我理解你的权利,你想从其他页

<form target='theFrame' method='GET' action='http://www.google.nl/search'> 

<input type='text' name='q'/> 
<input type='submit' value='Google it'/> 
</form> 
<iframe name='theFrame'></iframe> 

这个例子与谷歌进行搜索与搜索结果的iframe中。

0

可以在iframe中放置一个iframe,但第二个iframe的样式必须位于第一个iframe所链接的页面上,因为第二个iframe将位于第一个iframe的不同页面上。 (如果我理解你的问题)希望这有助于:)