JSP导出Excel后身份证后三位为0

JSP导出Excel身份证号码超出Excel最大限制,用科学计数法表示,但后三位为0,修改方式:

<style type="text/css">
.txt
    {
     padding-top:1px;
     padding-right:1px;
     padding-left:1px;
     mso-ignore:padding;
     color:black;
     font-size:11.0pt;
     font-weight:400;
     font-style:normal;
     text-decoration:none;
     font-family:宋体;
     mso-generic-font-family:auto;
     mso-font-charset:134;
     mso-number-format:"@";
     text-align:general;
     vertical-align:middle;
     mso-background-source:auto;
     mso-pattern:auto;
     white-space:nowrap;
    }
</style>
<body>
 <center>
  <table  borderColor="#000000" cellSpacing="0" align="center"  border="1">
   <thead>
    <tr><td>身份证号</td></tr>
   </thead>
  <c:forEach items="${requestScope.vd301s }" var="vd301" varStatus="i">
   <tr><td class="txt">${vd301.d30112 }</td></tr>
      </c:forEach>
  </table>
 </center>
</body>

转载于:https://www.cnblogs.com/quyanhui/p/3569726.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值