diff --git a/src/layaAir/laya/html/dom/HTMLElement.ts b/src/layaAir/laya/html/dom/HTMLElement.ts
index bcd7ee2993..9b9932bb55 100644
--- a/src/layaAir/laya/html/dom/HTMLElement.ts
+++ b/src/layaAir/laya/html/dom/HTMLElement.ts
@@ -117,7 +117,7 @@ export class HTMLElement {
if (this._children)
this._children.forEach(function (o: HTMLElement, index: number, array: any[]): void {
var _style: HTMLStyle = (o._style);
- _style._enableLayout && _style._enableLayout() && o._addToLayout(out);
+ _style && _style._enableLayout && _style._enableLayout() && o._addToLayout(out);
});
return true;
}