<view> ist ein definierter Weg, das Bild zu betrachten, wie eine Vergrößerungsstufe oder eine Detail-Ansicht.
Gebrauchs-Kontext
Kategorien | Keine |
---|---|
Erlaubter Inhalt | Beliebige Anzahl der folgenden Elemente, in beliebiger Reihenfolge: Beschreibende Elemente |
Attribute
Globale Attribute
Spezifische Attribute
Beispiel
SVG
<svg width="600" height="200" viewBox="0 0 600 200"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<radialGradient id="gradient">
<stop offset="0%" stop-color="#8cffa0" />
<stop offset="100%" stop-color="#8ca0ff" />
</radialGradient>
</defs>
<circle r="50" cx="180" cy="50" style="fill:url(#gradient)"/>
<view id="halfSizeView" viewBox="0 0 1200 400"/>
<view id="normalSizeView" viewBox="0 0 600 200"/>
<view id="doubleSizeView" viewBox="0 0 300 100"/>
<a xlink:href="#halfSizeView">
<text x="5" y="20" font-size="20">half size</text>
</a>
<a xlink:href="#normalSizeView">
<text x="5" y="40" font-size="20">normal size</text>
</a>
<a xlink:href="#doubleSizeView">
<text x="5" y="60" font-size="20">double size</text>
</a>
</svg>
Ergebnis
DOM Interface
This element implements the SVGViewElement
interface.
Specifications
Specification | Status | Comment |
---|---|---|
Scalable Vector Graphics (SVG) 2 Die Definition von '<view>' in dieser Spezifikation. |
Anwärter Empfehlung | |
Scalable Vector Graphics (SVG) 1.1 (Second Edition) Die Definition von '<view>' in dieser Spezifikation. |
Empfehlung | Initial definition |
Browser compatibility
Wir konvertieren die Kompatibilitätsdaten in ein maschinenlesbares JSON Format.
Diese Kompatibilitätstabelle liegt noch im alten Format vor,
denn die darin enthaltenen Daten wurden noch nicht konvertiert.
Finde heraus wie du helfen kannst!
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | (Ja) | (Ja) | 15.0 (15.0) | Nicht unterstützt | (Ja) | ? |
Feature | Android | Edge | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | (Ja) | 15.0 (15.0) | ? | ? | ? |