java命名空间javax.swing.text.html类html的类成员方法:
gettag定义及介绍
本文导语:
gettag
public static html.tag gettag(string tagname)
获取已知标记名称的标记常量(即集合 {a, address, applet, area, b, base, basefont, big, blockquote, body, br, caption, center, cite, code, dd, dfn, dir, div, dl, dt, em, font, form, frame, frameset, h1, h2, h3, h4, h5, h6, head,...
gettag
public static html.tag gettag(string tagname)
- 获取已知标记名称的标记常量(即集合 {a, address, applet, area, b, base, basefont, big, blockquote, body, br, caption, center, cite, code, dd, dfn, dir, div, dl, dt, em, font, form, frame, frameset, h1, h2, h3, h4, h5, h6, head, hr, html, i, img, input, isindex, kbd, li, link, map, menu, meta, nobr, noframes, object, ol, option, p, param, pre, samp, script, select, small, span, strike, s, strong, style, sub, sup, table, td, textarea, th, title, tr, tt, u, ul, var} 中的某个标记)。如果给定名称不表示某个已知标记,则返回
null
。
- 参数:
tagname
- 所请求的 string
名称
- 返回:
- 对应于
tagname
的标记常量,如果未找到,则返回 null