SVGForeignObjectElement

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

Giao diện SVGForeignObjectElement cung cấp quyền truy cập vào các thuộc tính của phần tử <foreignObject>, cũng như các phương thức để thao tác chúng.

EventTarget Node Element SVGElement SVGGraphicsElement SVGForeignObjectElement

Thuộc tính phiên bản

Giao diện này cũng kế thừa thuộc tính từ đối tượng cha, SVGGraphicsElement.

SVGForeignObjectElement.x Read only

Một SVGAnimatedLength tương ứng với thuộc tính x của phần tử <foreignObject> đã cho.

SVGForeignObjectElement.y Read only

Một SVGAnimatedLength tương ứng với thuộc tính x của phần tử <foreignObject> đã cho.

SVGForeignObjectElement.width Read only

Một SVGAnimatedLength tương ứng với thuộc tính width của phần tử <foreignObject> đã cho.

SVGForeignObjectElement.height Read only

Một SVGAnimatedLength tương ứng với thuộc tính height của phần tử <foreignObject> đã cho.

Phương thức phiên bản

Giao diện này không có phương thức riêng nhưng kế thừa các phương thức từ đối tượng cha, SVGGraphicsElement.

Thông số kỹ thuật

Thông số kỹ thuật
Scalable Vector Graphics (SVG) 2
# InterfaceSVGForeignObjectElement

Tương thích trình duyệt

Xem thêm