Package | laya.html.dom |
Class | public class HTMLDivElement |
Inheritance | HTMLDivElement laya.html.dom.HTMLElement |
Subclasses | HTMLIframeElement |
Property | Defined By | ||
---|---|---|---|
contextHeight : Number 实际内容的高 | HTMLDivElement | ||
contextWidth : Number 实际内容的宽 | HTMLDivElement | ||
height : Number [override] [read-only]
获取对象的高
| HTMLDivElement | ||
innerHTML : String [write-only]
设置标签内容
| HTMLDivElement | ||
width : Number [override]
获取对象的宽
| HTMLDivElement |
Method | Defined By | ||
---|---|---|---|
HTMLDivElement | |||
appendHTML(text:String):void
追加内容,解析并对显示对象排版
| HTMLDivElement |
contextHeight | property |
public var contextHeight:Number
实际内容的高
contextWidth | property |
public var contextWidth:Number
实际内容的宽
height | property |
height:Number
[read-only] [override] 获取对象的高
public function get height():Number
innerHTML | property |
innerHTML:String
[write-only] 设置标签内容
public function set innerHTML(value:String):void
width | property |
width:Number
[override] 获取对象的宽
public function get width():Number
public function set width(value:Number):void
HTMLDivElement | () | Constructor |
public function HTMLDivElement()
appendHTML | () | method |
public function appendHTML(text:String):void
追加内容,解析并对显示对象排版
Parameters
text:String |