Methods
Static
create
- create(tagName, className?, container?): HTMLElement
Parameters
tagName: string
Optional
className: string
Optional
container: HTMLElement
Returns HTMLElement
Static
createNS
- createNS(namespaceURI, tagName): Element
Parameters
namespaceURI: string
tagName: string
Returns Element
Static
createStyledDiv
- createStyledDiv(htmlContent, cssString?): HTMLDivElement
Parameters
htmlContent: string
Optional
cssString: string
Returns HTMLDivElement
Static
remove
- remove(node): void
Returns void
Static
setTransform
- setTransform(el, value): void
Parameters
el: HTMLElement
value: string
Returns void
通过html和css内容创建div