浏览代码

提交数据

lvhao 3 月之前
父节点
当前提交
eba9daf9eb
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      core/CoreApp/models/Model_excel.php

+ 4 - 1
core/CoreApp/models/Model_excel.php

@@ -97,7 +97,10 @@ function __construct(){
         </x:ExcelWorkbook>
         </xml>
         <![endif]-->
-        </head><body>";
+        </head><style>.excel-text {
+  mso-number-format:'\@';
+  vnd.ms-excel.numberformat:@;
+}</style><body>";
 		$str .= $titlename; 
 		$str .= "<table border=1 style='font-family: Microsoft Yahei;font-size: 13px;'>"; 
 		foreach ($info_list as $key=>$value)