[LayaAir 1.0]htmldivelement 不能设置height???

/**
* 获取对象的高
*/
readonly height: number; 
为什么里面的height属性是只读?
 
现在想做个一个根据html内容高度来决定是否需要滚动的功能,但是height居然是只读的
已邀请:

Aar0n

赞同来自:

 在style里设置

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作