當前為10.0版本文檔,更多實例內容將在最新幫助文檔中展現,點選跳轉至 最新版幫助文檔

HTML 解析插件

1. 概述

1.1 版本

報表服務器版本JAR 包HTML解析插件版本
10.0.102020-11-02V1.0.0

1.2 應用場景

用戶導出包含 HTML 語句的模板,出現導出效果與預覽效果不相同的情況時,由於不清楚導出支持的 HTML 标簽,将無法修改及優化 HTML 語句。

安裝 HTML 解析插件後,将優先使用插件中的邏輯展示及導出 HTML ,用戶可參考本文所展示的 HTML 标簽優化使用模板中的 HTML 語句。

1.3 功能簡介

用於處理模板中 HTML 相關的導出預覽邏輯,确保 HTML 的顯示和導出效果,安裝後将優先使用插件中的邏輯來展示及導出 HTML 。

2. 插件介紹

2.1 安裝插件

插件下載請點擊:HTML 解析插件

設計器插件安裝方法請參見:設計器插件管理

服務器安裝插件方法請參見:服務器插件管理

注:用戶升級到 10.0.10 版本後,将自動安裝該插件;升級到 10.0.10 後回退到之前舊版本,HTML 解析插件自動禁用。

2.2 HTML 解析邏輯優先級

具體介紹如下所示:

  • 同時安裝 HTML 解析插件及性能插件時,HTML 解析使用「HTML解析插件」的邏輯。

  • 僅安裝 HTML 解析插件時,HTML 解析使用「HTML解析插件」的邏輯。

  • 僅安裝 性能插件 時,HTML 解析使用「性能插件」的 HTML 解析邏輯。

  • 不安裝任何插件時,HTML 解析使用産品内置的邏輯。

3. 塊級标簽

本章介紹導出支持的塊級标簽。

3.1 h1-h6

屬性分類屬性屬性值
值範圍
導出文件類型
背景
background顔色值:background:red 

名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:以圖片顯示

導出圖片:支持

性能插件(PDF/word/Excel/圖片):插件版本低於V5.9.54時,只支持Word;其他版本都不支持


圖片:background:url('localhost:3000/test.img')非相對路徑

導出PDF:支持

導出Word:以圖片顯示

導出Excel:以圖片顯示

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

background-color顔色值:background-color:red

名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持,單元格背景爲顔色時以文本顯示,其他以圖片顯示

導出Excel:支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):插件版本低於V5.9.54時,只支持Word,且不支持單元格背景爲顔色以外的背景


background-image圖片: background-image:url('localhost:3000/test.img')非相對路徑導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

background-size圖片大小:background-size:80px 60px單位:px 或 pt導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

字體
font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持,字體缺失則替換

導出Word:支持,指定的字體如果系統沒有時,會發生字體替換,但是Word内文本的字體名稱仍顯示爲指定字體

導出Excel:支持,字體缺失則替換,且Excel内文本的名稱顯示爲替換後的字體

導出圖片:支持,字體缺失則替換

性能插件(PDF/word/Excel/圖片):插件版本低於V5.9.54,支持,但換行不一緻;其他版本都不支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種導出PDF:支持

導出Word:支持,忽視标簽之間的間距

導出Excel:支持,忽視标簽之間的間距

導出圖片:支持

性能插件(PDF/word/Excel/圖片):

  • 插件版本低於V5.9.54,預覽時标簽之間的間距不一緻。但是PDF内間距一緻;Word/Excel與不使用插件同效果。

  • 插件版本高於V5.9.55,預覽時标簽之間的間距不一緻,但是PDF内間距一緻;Word/Excel與不使用插件同效果

font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit導出PDF:支持

導出Word:支持,但不支持單元格設置了下劃線、陰影

導出Excel:支持,但不支持單元格設置了下劃線、陰影

導出圖片:支持

性能插件(PDF/word/Excel/圖片):

  • 插件版本低於V5.9.54,文本會比預覽時細,單元格再設置一次加粗會變粗

  • 插件版本高於v5.9.55,支持

font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):支持

text-decoration文本修飾:text-decoration:underlineunderline 、line-through導出PDF:支持

導出Word:支持,但不同字體下劃線粗細不一緻

導出Excel:支持,但不同字體下劃線粗細不一緻;塊标簽内如果有多個标簽,線會斷開

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

注:導出時下劃線和删除線只會和字體同一個顔色,不會單獨解析
邊框border邊框:border:1px solid #000 或 1px solid

大小(單位:px 或 pt)

樣式(樣式:solid  或 dashed )

顔色(顔色:名稱、16進制值 或 rgb  )

導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

border-color

邊框顔色:border-color:red green blue pink導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

border-width邊框寬度:border-width:2px導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

border-style邊框樣式:border-style:solid導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

border-top上邊框:border-top:1px solid #000 或 1px solid導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

border-bottom下邊框:border-bottom:1px solid #000 或 1px solid導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

border-left左邊框:border-left:1px solid #000 或 1px solid導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

border-right右邊框:border-right:1px solid #000 或 1px solid導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

border-*-width

(*:top|bottom|left|right)

邊框寬度::border-top-width:1px單位:px 或 pt導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

border-*-style邊框樣式::border-top-width:dashed 樣式:solid  或 dashed 導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

border-*-color邊框顔色:border-top-color:red

名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

段落line-height行高:line-height:10px例:單位 px 、pt導出PDF:支持

導出Word:支持,如果不設置該屬性但是單元格設置了間距,也會以圖片顯示

導出Excel:以圖片顯示,如果不設置該屬性但是單元格設置了間距,也會以圖片顯示

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

width寬度:width:10px例:單位:px、pt 或 % 三種導出PDF:支持

導出Word:不支持,除非跟line-height一起設置,導出的時候繪圖,這時width的效果看起來是生效的

導出Excel:不支持,除非跟line-height一起設置,導出的時候繪圖,這時width的效果看起來是生效的

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

text-align對齊:text-align:left例: left、right 或 center導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

text-indent首行縮進:text-indent:10px例:單位:px、pt導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

padding内邊距:padding:10px 5px 15px 20px例:單位:px、pt導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

注:該屬性會與單元格縮進距離疊加


padding-top

padding-bottom

padding-left

padding-right

内邊距: padding-top:10px例:單位:px、pt導出PDF:支持,但pt爲單位時與預覽有差異

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

margin外邊距: margin:10px 5px 15px 20px例:單位:px、pt導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件(PDF/word/Excel/圖片):不支持

margin-top

margin-bottom

margin-left

margin-right

外邊距: margin-top:10px例:單位:px、pt導出PDF:支持,但pt爲單位時與預覽有差異

導出Word:不支持

導出Excel:不支持

導出圖片:支持,但pt爲單位時與預覽有差異

性能插件(PDF/word/Excel/圖片):不支持

3.2 div

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:不支持

導出Word:不支持

導出Excel:不支持

導出圖片:不支持

性能插件:不支持

圖片:background:url('localhost:3000/test.img')非相對路徑
導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

注:背景圖片只顯示在有文本的地方

background-color顔色值:background-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:不支持

導出Word:不支持

導出Excel:不支持

導出圖片:不支持

性能插件:不支持

background-image圖片: background-image:url('localhost:3000/test.img')非相對路徑
導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

注:背景圖片只顯示在有文本的地方
background-size圖片大小:background-size:80px 60px單位:px 或 pt導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

text-decoration文本修飾:text-decoration:underlineunderline 、line-through導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

color字體顔色:color:red

名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

邊框border邊框:border:1px solid #000 或 1px solid

大小(單位:px 或 pt)

樣式(樣式:solid  或 dashed )

顔色(顔色:名稱、16進制值 或 rgb  )

導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:不支持

border-color

邊框顔色:border-color:red green blue pink
border-width邊框寬度:border-width:2px
border-style邊框樣式:border-style:solid 
border-top上邊框:border-top:1px solid #000 或 1px solid
border-bottom下邊框:border-bottom:1px solid #000 或 1px solid
border-left左邊框:border-left:1px solid #000 或 1px solid
border-right右邊框:border-right:1px solid #000 或 1px solid

border-*-width

(*:top|bottom|left|right)

邊框寬度::border-top-width:1px單位:px 或 pt
border-*-style邊框樣式::border-top-width:dashed 樣式:solid  或 dashed 
border-*-color邊框顔色:border-top-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

段落line-height行高:line-height:10px例:單位 px 、pt導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

width寬度:width:10px例:單位:px、pt 或 % 三種導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

text-align對齊:text-align:left例: left、right 或 center導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:不支持

text-indent首行縮進:text-indent:10px例:單位:px、pt導出PDF:不支持

導出Word:不支持

導出Excel:不支持

導出圖片:不支持

性能插件:不支持

padding内邊距:padding:10px 5px 15px 20px例:單位:px、pt導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:不支持

padding-top

padding-bottom

padding-left

padding-right

内邊距: padding-top:10px例:單位:px、pt導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:不支持

margin外邊距: margin:10px 5px 15px 20px例:單位:px、pt導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:不支持

margin-top

margin-bottom

margin-left

margin-right

外邊距: margin-top:10px例:單位:px、pt導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:不支持

3.3 p

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持,以圖片顯示

導出圖片:支持

性能插件:不支持

圖片:background:url('localhost:3000/test.img')非相對路徑導出PDF:支持

導出Word:支持,以圖片顯示

導出Excel:支持,以圖片顯示

導出圖片:支持

性能插件:不支持

background-color顔色值:background-color:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

background-image圖片: background-image:url('localhost:3000/test.img')非相對路徑導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

background-size圖片大小:background-size:80px 60px單位:px 或 pt導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種
font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit
font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體
text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

邊框border邊框:border:1px solid #000 或 1px solid

大小(單位:px 或 pt)

樣式(樣式:solid  或 dashed )

顔色(顔色:名稱、16進制值 或 rgb  )

導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:支持

border-color邊框顔色:border-color:red green blue pink
border-width邊框寬度:border-width:2px
border-style邊框樣式:border-style:solid 
border-top上邊框:border-top:1px solid #000 或 1px solid
border-bottom下邊框:border-bottom:1px solid #000 或 1px solid
border-left左邊框:border-left:1px solid #000 或 1px solid
border-right右邊框:border-right:1px solid #000 或 1px solid

border-*-width

(*:top|bottom|left|right)

邊框寬度::border-top-width:1px單位:px 或 pt
border-*-style邊框樣式::border-top-width:dashed 樣式:solid  或 dashed 
border-*-color邊框顔色:border-top-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

段落line-height行高:line-height:10px例:單位 px 、pt導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:支持

width寬度:width:10px例:單位:px、pt 或 % 三種導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:不支持

text-align對齊:text-align:left例: left、right 或 center導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:不支持

text-indent首行縮進:text-indent:10px例:單位:px、pt導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:支持

padding内邊距:padding:10px 5px 15px 20px例:單位:px、pt導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:不支持

padding-top

padding-bottom

padding-left

padding-right

内邊距: padding-top:10px例:單位:px、pt導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:不支持

margin外邊距: margin:10px 5px 15px 20px例:單位:px、pt導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:不支持

margin-top

margin-bottom

margin-left

margin-right

外邊距: margin-top:10px例:單位:px、pt導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

性能插件:不支持

3.4 ul/ol/li

屬性分類屬性屬性值值範圍導出文件類型
字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種
font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit
font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體
text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

4. 表格标簽

本章介紹導出支持的表格标簽。

4.1 table

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:支持


圖片:background:url('localhost:3000/test.img')非相對路徑
background-color顔色值:background-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:支持

background-image圖片:background-image:url('localhost:3000/test.img')非相對路徑導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

background-size圖片大小:background-size:20px 20px單位:px 或 pt
字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

font-size字體大小:font-size:10px單位:px、pt 或 em三種
font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit導出PDF:支持

導出Word:支持,但不支持td嵌套

導出Excel:支持

導出圖片:支持

性能插件:不支持

font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

段落line-height行高:line-height:10px例:單位 px 、pt導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

text-align對齊:text-align:left例: left、right 或 center導出PDF:不支持

導出Word:不支持

導出Excel:不支持

導出圖片:不支持

性能插件:不支持

text-indent首行縮進:text-indent:10px例:單位:px、pt導出PDF:不支持

導出Word:不支持

導出Excel:不支持

導出圖片:不支持

性能插件:不支持

表格width寬度:width:100px例:單位 px、pt、%導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

height高度:height:100px例:單位 px、pt
table-layout表格-布局:table-layout:fixed例:fixed 、 auto(該值不保證導出效果一緻)導出PDF:支持

導出Word:支持,圖片展示

導出Excel:支持,圖片展示

導出圖片:支持

性能插件:不支持

cellpadding單元邊界與單元内容間距:cellpading=10例:單位:px、pt
cellspacing單元於單元間距:cellspacing=10例:單位:px、pt導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

border-collapse是否合并單元格邊框: border-collapse: collapse例:collapse、separate導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

注:collapse時導出的邊框是重複繪制的,所以會比預覽粗
border邊框:border=“1”;例:不需要單位導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

border-color邊框顔色:border-color:red例:red、#ff0000、rgb(255,0,0)

4.2 tr

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

圖片:background:url('localhost:3000/test.img')非相對路徑
background-color顔色值:background-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

background-image圖片:background-image:url('localhost:3000/test.img')非相對路徑
background-size圖片大小:background-size:20px 20px單位:px 或 pt
字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

font-size字體大小:font-size:10px單位:px、pt 或 em三種
font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit
font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體
text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

段落line-height行高:line-height:10px例:單位 px 、pt導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

height高度:height:100px例:單位 px、pt
text-align對齊:text-align:left例: left、right 或 center

4.3 th/td

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

圖片:background:url('localhost:3000/test.img')非相對路徑
background-color顔色值:background-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

background-image圖片:background-image:url('localhost:3000/test.img')非相對路徑
background-size圖片大小:background-size:20px 20px單位:px 或 pt
字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

font-size字體大小:font-size:10px單位:px、pt 或 em三種
font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit
font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體
text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

段落line-height行高:line-height:10px例:單位 px 、pt導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持


width寬度:width:10px例:單位:px、pt 或 % 三種

height高度:height:100px例:單位 px、pt

text-align對齊:text-align:left例: left、right 或 center不支持

colspan合并列數::olspan=2-
導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

性能插件:不支持

5. 其他标簽

5.1 span

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

圖片:background:url('localhost:3000/test.img')非相對路徑
background-color顔色值:background-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種
font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit
font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體
text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

5.2 sub/sup

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:不支持

導出Word:不支持

導出Excel:不支持

導出圖片:不支持


圖片:background:url('localhost:3000/test.img')非相對路徑
background-color顔色值:background-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種
font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit

text-decoration

文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

5.2 b

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

圖片:background:url('localhost:3000/test.img')非相對路徑
background-color顔色值:background-color:red

名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種
font-style字體樣式:font-style:talicitalic、normal 、 oblique 或 inherit導出PDF:支持

導出Word:不支持

導出Excel:不支持

導出圖片:支持

font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

5.3 i

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持


圖片:background:url('localhost:3000/test.img')非相對路徑
background-color顔色值:background-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:不支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種導出PDF:不支持

導出Word:不支持

導出Excel:不支持

導出圖片:不支持

font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體
text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

5.4 em

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

圖片:background:url('localhost:3000/test.img')非相對路徑
background-color顔色值:background-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種
font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit
font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體
text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

5.5 u

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

圖片:background:url('localhost:3000/test.img')非相對路徑
background-color顔色值:background-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種
font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit
font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體
text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

5.6 s/strike/del

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

圖片:background:url('localhost:3000/test.img')非相對路徑
background-color顔色值:background-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種
font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit
font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體
text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

5.7 font

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

圖片:background:url('localhost:3000/test.img')非相對路徑
background-color顔色值:background-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種
font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit
font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體
text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

5.8 strong

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

圖片:background:url('localhost:3000/test.img')非相對路徑
background-color顔色值:background-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種
font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit
font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體
text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

5.9 img

屬性分類屬性屬性值值範圍導出文件類型
圖片src路徑:src="localhost:3000/test.img"例:localhost:3000/test.img

或 base64編碼後的圖片

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

width寬度:width:10px例:單位 px、pt
height高度:height:10px例:單位 px、pt

5.10 a

屬性分類屬性屬性值值範圍導出文件類型
背景background顔色值:background:red 名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

圖片:background:url('localhost:3000/test.img')非相對路徑導出PDF:支持

導出Word:不支持

導出Excel:支持

導出圖片:支持

background-color顔色值:background-color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

字體font-family字體名:font-family:'Times New Roman'字體名導出PDF:支持

導出Word:支持

導出Excel:支持

導出圖片:支持

font-size字體大小:font-size:16px單位:px、pt 或 em三種
font-style字體樣式:font-style:italicitalic、normal 、 oblique 或 inherit
font-weight字體粗細:font-weight:boldbold 、700 、800、900 均爲普通粗體
text-decoration文本修飾:text-decoration:underlineunderline 、line-through
color字體顔色:color:red名稱、16進制值 或 rgb  

如:red、#ff0000、rgb(255,0,0)

超鏈接href鏈接:href=“http://www.baidu.com”例:完整鏈接(例:http://www.baidu.com)導出PDF:支持,支持點擊超鏈跳轉

導出Word:支持

導出Excel:支持

導出圖片:支持




附件列表


主題: 原簡體文檔
已經是第一篇
已經是最後一篇
  • 有幫助
  • 沒幫助
  • 只是瀏覽

文 檔回 饋

滑鼠選中內容,快速回饋問題

滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

不再提示

8s後關閉

反饋已提交

網絡繁忙