jiangzheng 发表于 2012-4-27 08:39:49

IE浏览器打开网站提示下载,google浏览器正常

用CI框架开发的系统部署到服务器后,用IE浏览器打开网站就提示下载,但google浏览器能正常打开,这个是什么问题?
网址是maifanfan.com

sdink 发表于 2012-4-27 08:49:13

当然。如果你把头信息改成JSON的,IE也会下载。而google浏览器能正常打开

jiangzheng 发表于 2012-4-27 08:54:51

请教楼上,您是说是因为我的头信息是JSON的原因吗?
这是我head文件的内容:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <title> <?php echo $page_info['page_title'] ?> </title>
      <link rel="stylesheet" type="text/css" href="<?php getcwd(); ?>/static/css/stytle.css" />
      <link rel="stylesheet" type="text/css" href="<?php getcwd(); ?>/static/css/<?php echo $page_info['business_line'] ?>.css" />
      <link rel="shortcut icon" href="<?php getcwd(); ?>/static/images/ico32.ico" type="image/x-icon" />
      <script type="text/javascript" src="<?php getcwd(); ?>/static/js/jquery-1.6.2.min.js"></script>
      <script type="text/javascript" src="<?php getcwd(); ?>/static/js/jquery-1.3.2.min.js"></script>
      <script type="text/javascript" src="<?php getcwd(); ?>/static/js/jquery.rate.js"></script>
      <script type="text/javascript" src="<?php getcwd(); ?>/static/js/CJL.0.1.min.js"></script>
      <script type="text/javascript" src="<?php getcwd(); ?>/static/js/AlertBox.js"></script>
      <script type="text/javascript" src="<?php getcwd(); ?>/static/js/mff_<?php echo $page_info['business_line'] ?>.js"></script>
    </head>

sdink 发表于 2012-4-27 22:10:02

可以放头信息的地方很多吧 好好的找找 header函数,还有CI是不是开启了压缩。。config里的time_reference等等

jiangzheng 发表于 2012-4-29 08:52:02

已经搞定了,谢谢楼上啊,我的QQ是5581458,加一下保持联系哦
页: [1]
查看完整版本: IE浏览器打开网站提示下载,google浏览器正常