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)

  • 相关阅读:
    1225. 岛的周长
    238. Product of Array Except Self除自身以外数组的乘积
    RxJava--Buffer,GroupBy 对比
    RxJava--Buffer,GroupBy 对比
    HDU-2182-Frog
    HDU-2182-Frog
    Linux下必知必会文件和目录
    Linux下必知必会文件和目录
    获取一篇新闻的全部信息
    获取一篇新闻的全部信息
  • 原文地址:https://www.cnblogs.com/zhuwenlubin/p/2371483.html
Copyright © 2011-2022 走看看