This page was translated from English by the community. Learn more and join the MDN Web Docs community.
<image>
Baseline
Widely available
*
This feature is well established and works across many devices and browser versions. It’s been available across browsers since июль 2015 г..
* Some parts of this feature may have varying levels of support.
Элемент <image> позволяет включить растровые изображения в SVG документ.
Usage context
| Категории | Графические элементы, Элементы графики, Отображаемый элемент |
|---|---|
| Разрешённый контент | Любое количество следующих элементов, в любом порядке: Элементы анимации Элементы описания <animate>, <animateMotion>, <animateTransform>, <discard>, <script>, <set>, <style> |
Атрибуты
DOM Interface
This element implements the SVGImageElement interface.
Пример
Базовый рендеринг PNG изображения в качестве объекта SVG:
SVG
html
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
<image href="mdn_logo_only_color.png" height="200" width="200" />
</svg>
Результат
[フレーム]
Спецификации
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2> # ImageElement> |
Совместимость с браузерами
Loading...