kerry
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