Dylemat: wykonaj pełny obraz svg w oknie, który wypełnia zniekształcenie aspektu, BEZ używania znacznika SVG. Dlaczego nie ma tagu svg? Ponieważ zamierzam zamienić SVG później (jeśli nie często) w życie strony, a nie znalazłem łatwego sposobu na zrobienie tego.Pełna szerokość i wysokość SVG
nieudanej próby:
<!-- for the record, my style are in a css file,
for example purposes they are style attrs-->
<!-- Working in Webkit but not in firefox, in firefox blocks stretching
and places the svg in the middle of the tag-->
<img src="my.svg" style="width:100%;height:100%;
position:fixed;top:0;left:0;bottom:0;right:0;" />
<!-- Both Webkit and Firefox block distortion, so the svg
appears centered in the div rather than conforming to the div-->
<div style="width:100%;height:100%;position:fixed;top:0;
left:0;bottom:0;right:0;background-size:cover;
background-image:url(my.svg);" />
Próbowałem również
background-size:contain;
background-size:cover;
background-size:100% 100%;
background-postion: center center;
ale bez powodzenia.
możliwe duplikat [Jak mogę przeskalować uporczywy svg osadzonych z tagiem
Gdzie w moim poście znajduje się znacznik '