chat_display.php和main.php是不是在同一个目录下呢,你可以直接用<frame ... src="chat_display.php" />试一下看看呢,把下面那个也换掉