I have one SVG that is rotate around a svg but is not fixed

后端 未结 1 1631
野性不改
野性不改 2021-01-26 06:05
 

   
1条回答
  •  春和景丽
    2021-01-26 06:46

    Your idea is right yet both SVG images will adjust to the proportion of the available space (do you have only viewBox defined in them, removing the height and width attributes?). So the second image (pic2) will always "bounce" when resizing (but how many web users really do that?).

    Maybe define styles for both SVGs in their DIV parent (or "container" element if you wish) by using vw and vh units - instead of pixels, possibly percentages as well - and this will at least give you more predictable result:

    
    
        
        

    0 讨论(0)
提交回复
热议问题