返回信息流同样的代码在linux下Firefox里可以显示,在windows的浏览器里显示不了
windows下没用火狐了,应该都是ie的内核
就是下面的代码,这是什么原因呢?是和浏览器有关系么?
<form enctype="multipart/form-data" action="upload.php" method="POST">
上传文件<input name="myfile" type="file" />
<input type="submit" value="提交上传" />
</form>
这是一条镜像帖。来源:北邮人论坛 / www-technology / #10669同步于 2010/8/15
该镜像源已超过 30 天没有更新,可能在源站已被删除。
WWWTechnology机器人发帖
同样的代码在linux下Firefox里可以显示,在windows的浏览器里显
thtyhust
2010/8/15镜像同步11 回复
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
ie下也没有问题啊
【 在 thtyhust (大猴子) 的大作中提到: 】
: 同样的代码在linux下Firefox里可以显示,在windows的浏览器里显示不了
: windows下没用火狐了,应该都是ie的内核
: 就是下面的代码,这是什么原因呢?是和浏览器有关系么?
: ...................
我用ie访问网页就没有显示任何东西。。。。。
特地在置顶里下了火狐北邮版,访问就可以。
是不是和我页面的声明啊啥的有关系呢?
【 在 xw2423 的大作中提到: 】
: ie下也没有问题啊
: 【 在 thtyhust (大猴子) 的大作中提到: 】
: : 同样的代码在linux下Firefox里可以显示,在windows的浏览器里显示不了
: ...................
而且ie下一直显示 “正在打开页面.....”
【 在 xw2423 的大作中提到: 】
: ie下也没有问题啊
: 【 在 thtyhust (大猴子) 的大作中提到: 】
: : 同样的代码在linux下Firefox里可以显示,在windows的浏览器里显示不了
: ...................
代码啊,来啦!乱码是中文
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh" >
<head>
<meta http-equiv="content-type" content="text/html;charset=gb2312" />
<meta name="generator" content="Adobe GoLive" />
<title>system_setup1</title>
<link href="css/basic.css" rel="stylesheet" type="text/css" media="all" />
<style type="text/css" media="screen"><!--
#layer1 { height: 100px; width: 100px; left: 18px; top: 18px; position: absolute; visibility: visible; }
#layer2 { height: 84px; width: 25px; left: 18px; top: 118px; position: absolute; visibility: visible; }
#layer3 { height: 33px; width: 106px; left: 43px; top: 118px; position: absolute; visibility: visible; }
#layer4 { height: 33px; width: 119px; left: 149px; top: 118px; position: absolute; visibility: visible; }
#layer5 { height: 33px; width: 104px; left: 268px; top: 118px; position: absolute; visibility: visible; }
#layer6 { height: 33px; width: 100px; left: 372px; top: 118px; position: absolute; visibility: visible; }
#layer7 { height: 33px; width: 404px; left: 472px; top: 118px; position: absolute; visibility: visible; }
#layer8 { height: 33px; width: 85px; left: 876px; top: 118px; position: absolute; visibility: visible; }
#layer9 { height: 33px; width: 81px; left: 961px; top: 118px; position: absolute; visibility: visible; }
#layer14 { height: 21px; width: 999px; left: 43px; top: 181px; position: absolute; visibility: visible; }
#layer15 { background-color: #ccc; height: 360px; width: 30px; left: 18px; top: 202px; position: absolute; visibility: visible; }
#layer16 { background-color: #ccc; height: 360px; width: 862px; left: 48px; top: 202px; position: absolute; visibility: visible; }
#layer17 { background-color: #ccc; height: 360px; width: 132px; left: 910px; top: 202px; position: absolute; visibility: visible; }
#layer18 { background-color: #ccc; height: 40px; width: 1024px; left: 18px; top: 562px; position: absolute; visibility: visible; }
#layer19 { background-color: #ccc; height: 29px; width: 1024px; left: 18px; top: 602px; position: absolute; visibility: visible; }
#layer22 { height: 30px; width: 1000px; left: 43px; top: 151px; position: absolute; visibility: visible; }
#layer20 { height: 30px; width: 44px; left: 225px; top: 151px; position: absolute; visibility: visible; }
--></style>
</head>
<body>
<div id="layer1">
<img src="images/banner.jpg" alt="" border="0" livesrc="images/banner1.jpg" width="1024" height="99" /></div>
<div id="layer2">
<img src="images/ÎŽ±êÌâ-1_01 (2).jpg" alt="" width="25" height="84" border="0" /></div>
<div id="layer3">
<a href="system_setup.php"><img src="images/ÎÄŒþŒÐ¹ÜÀí02_02.jpg" alt="" width="106" height="33" border="0" /></a></div>
<div id="layer4">
<a href="folder_setup.php"><img src="images/ÎÄŒþŒÐ¹ÜÀí02_03.jpg" alt="" width="119" height="33" border="0" /></a></div>
<div id="layer5">
<a href="download.php"><img src="images/ÎŽ±êÌâ-1_04 (2).jpg" alt="" width="108" height="33" border="0" /></a></div>
<div id="layer6">
<img src="images/²Ëµ¥_05.jpg" alt="" width="104" height="33" border="0" /></div>
<div id="layer7">
<img src="images/ÎŽ±êÌâ-1_06 (2).jpg" alt="" width="404" height="33" border="0" /></div>
<div id="layer8">
<img src="images/ÎŽ±êÌâ-1_07 (2).jpg" alt="" width="85" height="33" border="0" /></div>
<div id="layer9">
<img src="images/ÎŽ±êÌâ-1_08 (2).jpg" alt="" width="81" height="33" border="0" /></div>
<div id="layer14">
<img src="images/ÎŽ±êÌâ-1_13 (2).jpg" alt="" width="999" height="21" border="0" /></div>
<div id="layer15"></div>
<div id="layer16">
<table width="600" border="0" cellspacing="0" cellpadding="0" align="center">
<tr height="20">
<td colspan="2" width="120" height="20">
</td>
</tr>
<tr height="20">
<td width="70" height="20"></td>
<td width="120" height="20"><font size="-1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><strong>Äú¿ÉÒÔÍš¹ýŽË¹ŠÄÜÇáËÉÉèÖÃÄúµÄHtmlÍøÒ³£¬Éè¶šÄúµÄBTWeb¡£Äú¿ÉÒÔÍš¹ýÒÔÏÂÁœÖÖ·œÊœœ«ÄúÖÆ×÷ºÃµÄÍøÒ³ÉÏŽ«»ò޿ޢµœÖž¶š¿ÕŒä¡£</strong></font></td>
</tr>
<tr height="20">
<td width="70" height="20"></td>
<td width="120" height="20"></td>
</tr>
<tr height="20">
<td width="70" height="20"><font size="-1" color="#006496" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">·œÊœÒ»£º</font></td>
<td width="790" height="20"><font size="-1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">ÔÚŸÖÓòÍøÄÚ£¬Íš¹ýBTplug Windows ¿Í»§¶ËÈíŒþœ«ÄúµÄHtmlÎÄŒþ޿ޢµœBTplug-BTWeb ÎÄŒþŒÐ¡£</font></td>
</tr>
<tr height="10">
<td width="70" height="10"></td>
<td width="790" height="10"></td>
</tr>
<tr height="20">
<td width="70" height="20"></td>
<td width="790" height="20">
<div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="100" width="100">
<param name="movie" value="(EmptyReference!)" />
<param name="quality" value="best" />
<param name="play" value="true" />
<embed height="100" pluginspage="http://www.macromedia.com/go/getflashplayer" src="(EmptyReference!)" type="application/x-shockwave-flash" width="100" quality="best" play="true"></embed>
</object></div>
</td>
</tr>
<tr height="20">
<td width="70" height="20"></td>
<td width="790" height="20"></td>
</tr>
<tr height="20">
<td width="70" height="20"><font size="-1" color="#006496" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">·œÊœ¶þ£º</font></td>
<td width="790" height="20"><font size="-1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">ʹÓÃFTP¹ŠÄÜ£ºÍš¹ýIEä¯ÀÀÆ÷µÄFTP¹ŠÄÜœ«ÎÄŒþÉÏŽ«µœÄúµÄBTplug·þÎñÆ÷µÄBTWebÎÄŒþŒÐÖС£</font></td>
</tr>
<tr height="10">
<td width="70" height="10"></td>
<td width="790" height="10"></td>
</tr>
<tr height="20">
<td width="70" height="20"></td>
<td width="790" height="20">
<form enctype="multipart/form-data" action="upload.php" method="POST">
ÉÏŽ«ŽËÎÄŒþ£º<input name="myfile" type="file" />
<input type="submit" value="Ì᜻ÉÏŽ«" />
</form>
</td>
</tr>
<tr height="20">
<td width="70" height="20"></td>
<td width="790" height="20"></td>
</tr>
</table>
</div>
<div id="layer17">
</div>
<div id="layer18"></div>
<div id="layer19">
<table width="960" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="right">
<font size="-1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><a href="http://www.btplug.cn">»¶Ó­·ÃÎÊÖ§³ÖÍøÕŸ</a> ϵͳÉýŒ¶</font></div>
</td>
</tr>
</table>
</div>
<div id="layer22">
<img src="images/ÏÂÔØ3_09.jpg" alt="" width="1000" height="30" border="0" /></div>
</body>
</html>
【 在 xw2423 的大作中提到: 】
: 就只有这点代码么
: 【 在 thtyhust (大猴子) 的大作中提到: 】
: : 而且ie下一直显示 “正在打开页面.....”
: ...................
还有啊,我处理上传文件的代码写了个upload.php,在windows下的火狐里运行很好,在ie里弹出窗口总是很卡,而且窗口上的提示信息也不显示。。。
代码如下:
<?php
//将文件移至服务器的根目录的upload目录下
$upload_path = $_SERVER['DOCUMENT_ROOT']."/upload/" ;
//echo $upload_path;
$dest_file = $upload_path.basename($_FILES['myfile']['name']);
//将临时文件移至目标文件
if(move_uploaded_file($_FILES['myfile']['tmp_name'],$dest_file))
{
echo "<script language=\"JavaScript\">";
echo "alert(\"successful!\");";
echo "location.replace(\"myweb.php\");";
echo "</script>";
}
else
{
echo "<script language=\"JavaScript\">\r\n";
echo "alert(\"failed!\");\r\n";
echo " location.replace(\"myweb.php\");\r\n";
echo "</script>";
}
?>
【 在 xw2423 的大作中提到: 】
: 就只有这点代码么
: 【 在 thtyhust (大猴子) 的大作中提到: 】
: : 而且ie下一直显示 “正在打开页面.....”
: ...................
咦,我发现上一个文件代码复制的中文显示不了,这个就能显示了
不是俩个文件的编码方式又不一样导致的吧。。。
【 在 thtyhust 的大作中提到: 】
: 还有啊,我处理上传文件的代码写了个upload.php,在windows下的火狐里运行很好,在ie里弹出窗口总是很卡,而且窗口上的提示信息也不显示。。。
: 代码如下:
: <?php
: ...................
复制这个代码到本地用ie可以打开
【 在 thtyhust (大猴子) 的大作中提到: 】
: 代码啊,来啦!乱码是中文
: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
: <html lang="zh" >
: ...................
恩
【 在 thtyhust (大猴子) 的大作中提到: 】
: 咦,我发现上一个文件代码复制的中文显示不了,这个就能显示了
: 不是俩个文件的编码方式又不一样导致的吧。。。