【发布时间】:2012-05-10 13:53:23
【问题描述】:
我有以下 php 代码:
<?php
require_once("support.php");
$query = $_POST["search"];
$google = "http://www.google.com/search?q=" . $query;
$bing = "http://www.bing.com/search?q=" . $query;
$yahoo ="http://search.yahoo.com/search?p=" . $query;
$ask = "http://www.ask.com/web?q=" . $query;
$body= "<html><head>";
$body .= "<script src=\"scripts.js\"></script>";
$body .= "</head>";
$body .= "<frameset rows=\"50%,50%\" cols=\"50%,50%\" >";
$body .= "<frame src=\"$google\" />";
$body .= "<frame src=\"$bing\" />";
$body .= "<frame src=\"$yahoo\" />";
$body .= "<frame src=\"$ask\" />";
$body .= "</frameset>";
$body .= "</html>";
echo $body;
?>
生成以下 html:
<html>
<head>
<script src="scripts.js"></script>
</head>
<frameset rows="50%,50%" cols="50%,50%" >
<frame src="http://www.google.com/search?q=adf" />
<frame src="http://www.bing.com/search?q=adf" />
<frame src="http://search.yahoo.com/search?p=adf" />
<frame src="http://www.ask.com/web?q=adf" />
</frameset>
</html>
当我在 google chrome 中打开它时,我会从上面的 url 中获得 4 个包含预期内容的帧。但在第一帧中,谁的 src 来自谷歌,我什么也没得到;只是一个空白框架。 知道这里发生了什么吗?
谢谢
【问题讨论】:
-
Google 不喜欢将他们的内容嵌入到另一个页面中?
标签: php html google-chrome