当前位置: 代码迷 >> ASP.NET >> 希望高手可以帮小弟我解决一下。非常感谢
  详细解决方案

希望高手可以帮小弟我解决一下。非常感谢

热度:9653   发布时间:2013-02-25 00:00:00.0
希望高手可以帮我解决一下。非常感谢
首先我在PHP的test.php里面输出
$name = iconv('GB2312', 'UTF-8', "富甲天下");

$content = "document.write(\"";
$content = $content."<div class=menu_item>";
$content = $content."<table cellspacing='0' border='0' style='width: 110px; height: 159px'>";
$content = $content."<tr>";
$content = $content."<td style='width: 113px\" >";
$content = $content."<table width='110px' border='0'>";
$content = $content."<tr>";
$content = $content."<td align='center' style='width: 110px' >";
$content = $content."<div class='avatar48'>";
$content = $content."<img src='Upload/GameImg/2.jpg' alt='".$name."' />";
$content = $content."</div>";
$content = $content."</td>";
$content = $content."</tr>";
$content = $content."<tr>";
$content = $content." <td align='center' style='width: 110px' >";
$content = $content."<a class='blue_font' href=''>".$name."</a>";
$content = $content."</td>";
$content = $content."</tr>";  
$content = $content."</table>";
$content = $content."<br />";
$content = $content."</td>";
$content = $content."</tr>";  
$content = $content."</table>";  
$content = $content."</div>";
$content = $content."\");";

echo $content;



然在ASP.NET的aspx页面上用JAVASCRIPT显示
 <script language="javascript" type="text/javascript" src="http://192.168.1.10:8093/learning/test.php"></script>  

我之前用这个方法写的一个小测试。随便输出一行字母。在ASPX页面上都可以显示的。不知道这个为什么显示不了。请高人解答一下

------解决方案--------------------------------------------------------
用ifream套过来吧。或者用js输出吧
document.Write();
------解决方案--------------------------------------------------------
$content = $content." <td style='width: 113px\" >"; 这一句改改试试
$content = $content." <td style='width: 113px' >";
  相关解决方案