asfsd 发表于 2017-12-25 13:22:39

解决 apache poi 转换 word(docx) 文件到 html 文件表格没边框的问题

<xml-fragment xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mo="http://schemas.microsoft.com/office/mac/office/2008/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">  
   <w:tblPr>
  
   <w:tblW w:w="0" w:type="auto"/>
  
   <w:tblBorders>
  
       <w:top w:val="single" w:sz="4" w:space="0" w:color="auto"/>
  
       <w:left w:val="single" w:sz="4" w:space="0" w:color="auto"/>
  
       <w:bottom w:val="single" w:sz="4" w:space="0" w:color="auto"/>
  
       <w:right w:val="single" w:sz="4" w:space="0" w:color="auto"/>
  
       <w:insideH w:val="single" w:sz="4" w:space="0" w:color="auto"/>
  
       <w:insideV w:val="single" w:sz="4" w:space="0" w:color="auto"/>
  
   </w:tblBorders>
  
   <w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1"/>
  
   </w:tblPr>
  
   <w:tblGrid>
  
   <w:gridCol w:w="1984"/>
  
   <w:gridCol w:w="2694"/>
  
   <w:gridCol w:w="2885"/>
  
   </w:tblGrid>
  
   <w:tr w:rsidR="00D347DE" w:rsidRPr="00A709A0" w14:paraId="47BBA15B" w14:textId="77777777" w:rsidTr="00146A0B">
  
   <w:tc>
  
       <w:tcPr>
  
         <w:tcW w:w="1984" w:type="dxa"/>
  
       </w:tcPr>
  
       <w:p>
  
         <w:pPr>
  
         <w:jc w:val="center"/>
  
         </w:pPr>
  
         <w:r>
  
         <w:t>${表格匹配信息}</w:t>
  
         </w:r>
  
       </w:p>
  
   </w:tc>
  
   <w:tc>
  
       <w:tcPr>
  
         <w:tcW w:w="2694" w:type="dxa"/>
  
       </w:tcPr>
  
       <w:p>
  
         <w:pPr>
  
         <w:jc w:val="center"/>
  
         </w:pPr>
  
         <w:r>
  
         <w:t xml:space="preserve"></w:t>
  
         </w:r>
  
       </w:p>
  
   </w:tc>
  
   <w:tc>
  
       <w:tcPr>
  
         <w:tcW w:w="2885" w:type="dxa"/>
  
       </w:tcPr>
  
       <w:p>
  
         <w:pPr>
  
         <w:jc w:val="center"/>
  
         </w:pPr>
  
         <w:r>
  
         <w:t xml:space="preserve"></w:t>
  
         </w:r>
  
       </w:p>
  
   </w:tc>
  
   </w:tr>
  
</xml-fragment>
页: [1]
查看完整版本: 解决 apache poi 转换 word(docx) 文件到 html 文件表格没边框的问题