Packagelaya.html.dom
Classpublic class HTMLDivElement
InheritanceHTMLDivElement Inheritance laya.html.dom.HTMLElement
Subclasses HTMLIframeElement

DIV标签



Public Properties
 PropertyDefined By
  contextHeight : Number
实际内容的高
HTMLDivElement
  contextWidth : Number
实际内容的宽
HTMLDivElement
  height : Number
[override] [read-only] 获取对象的高
HTMLDivElement
  innerHTML : String
[write-only] 设置标签内容
HTMLDivElement
  width : Number
[override] 获取对象的宽
HTMLDivElement
Public Methods
 MethodDefined By
  
HTMLDivElement
  
appendHTML(text:String):void
追加内容,解析并对显示对象排版
HTMLDivElement
Property Detail
contextHeightproperty
public var contextHeight:Number

实际内容的高

contextWidthproperty 
public var contextWidth:Number

实际内容的宽

heightproperty 
height:Number  [read-only] [override]

获取对象的高


Implementation
    public function get height():Number
innerHTMLproperty 
innerHTML:String  [write-only]

设置标签内容


Implementation
    public function set innerHTML(value:String):void
widthproperty 
width:Number[override]

获取对象的宽


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
HTMLDivElement()Constructor
public function HTMLDivElement()



Method Detail
appendHTML()method
public function appendHTML(text:String):void

追加内容,解析并对显示对象排版

Parameters

text:String