Browse Source
* commit '088b8f06c2869dfa8a96b8e2dbe8f0c8544da4f0': REPORT-7872 && REPORT-7874 && REPORT-7584 html解析之文字抗锯齿;解析 文字 加粗 颜色 背景 无效;html背景图形, 打印出来发现没有铺满单元格, 只有文字部分有背景10.0
superman
7 years ago
8 changed files with 130 additions and 6 deletions
@ -0,0 +1,35 @@
|
||||
package com.fr.third.v2.lowagie.text.html.simpleparser; |
||||
|
||||
import com.fr.third.v2.lowagie.text.html.HtmlTags; |
||||
|
||||
import java.util.ArrayList; |
||||
|
||||
/** |
||||
* @author kerry |
||||
* @date 2018/5/2 |
||||
*/ |
||||
public class HtmlConstants { |
||||
//块级元素集合
|
||||
public static final ArrayList BLOCK_ELEMENTS = new ArrayList(); |
||||
//行内元素集合
|
||||
public static final ArrayList INLINE_ELEMENTS = new ArrayList(); |
||||
static { |
||||
BLOCK_ELEMENTS.add(HtmlTags.DIV); |
||||
BLOCK_ELEMENTS.add(HtmlTags.UNORDEREDLIST); |
||||
BLOCK_ELEMENTS.add(HtmlTags.PARAGRAPH); |
||||
BLOCK_ELEMENTS.add(HtmlTags.ORDEREDLIST); |
||||
BLOCK_ELEMENTS.add(HtmlTags.TABLE); |
||||
} |
||||
static { |
||||
INLINE_ELEMENTS.add(HtmlTags.SPAN); |
||||
INLINE_ELEMENTS.add(HtmlTags.IMAGE); |
||||
INLINE_ELEMENTS.add(HtmlTags.STRONG); |
||||
INLINE_ELEMENTS.add(HtmlTags.ANCHOR); |
||||
INLINE_ELEMENTS.add(HtmlTags.SUB); |
||||
INLINE_ELEMENTS.add(HtmlTags.SUP); |
||||
INLINE_ELEMENTS.add(HtmlTags.I); |
||||
INLINE_ELEMENTS.add(HtmlTags.U); |
||||
INLINE_ELEMENTS.add(HtmlTags.EM); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue