Browse Source

提交数据

lvhao 3 months ago
parent
commit
eba9daf9eb
1 changed files with 4 additions and 1 deletions
  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)