zoukankan      html  css  js  c++  java
  • 导出excel身份证过长导致显示不正常自定义单元格格式解决方法

    Html代码:
    View Code
    <html> <head> </head> <body> <table> <tr> <td>1</td> <td style="mso-number-format:'/@';">10000000000001</td> <td style="mso-number-format:'0/.00';">111111111111111</td> </tr> <tr> <td>1</td> <td>10000000000001</td> <td>11111111111111111111</td> </tr> </table> </body> </html>

    主要是 <td style="mso-number-format:'\@';"> 起作用

    其他自定义单元格格式 样式

    mso-number-format:"0" NO Decimals
    mso-number-format:"0\.000" 3 Decimals
    mso-number-format:"\#\,\#\#0\.000" Comma with 3 dec
    mso-number-format:"mm\/dd\/yy" Date7
    mso-number-format:"mmmm\ d\,\ yyyy" Date9
    mso-number-format:"m\/d\/yy\ h\:mm\ AM\/PM" D -T AMPM
    mso-number-format:"Short Date" 01/03/1998
    mso-number-format:"Medium Date" 01-mar-98
    mso-number-format:"d\-mmm\-yyyy" 01-mar-1998
    mso-number-format:"Short Time" 5:16
    mso-number-format:"Medium Time" 5:16 am
    mso-number-format:"Long Time" 5:16:21:00
    mso-number-format:"Percent" Percent - two decimals
    mso-number-format:"0%" Percent - no decimals
    mso-number-format:"0\.E+00" Scientific Notation
    mso-number-format:"\@" Text
    mso-number-format:"\#\ ???\/???" Fractions - up to 3 digits (312/943)
    mso-number-format:"\0022£\0022\#\,\#\#0\.00" £12.76
    mso-number-format:"\#\,\#\#0\.00_ \;\[Red\]\-\#\,\#\#0\.00\ "

    2 decimals, negative numbers in red and signed
    (1.56   -1.56)

  • 相关阅读:
    Kotlin 基础
    ViewPager2
    8086-debug指令
    (四)主控板改IP,升级app,boot,mac
    (三)主控板生级uboot与内核
    (四)linux网络编程
    (七)嵌入式系统异常程序远程定位
    (六)ARM状态寄存器-PSR
    (五)stm32工程代码HardFault异常查错调试方法
    (十)makefile
  • 原文地址:https://www.cnblogs.com/zhuwenlubin/p/2371483.html
Copyright © 2011-2022 走看看