How do I scale an SVG polygon in ems?

后端 未结 2 1081
夕颜
夕颜 2020-12-06 06:11

I\'m embedding an element directly in an HTML5 document, and I want to scale a repeating background pattern in terms of the page\'s font size. No p

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-06 07:01

    You can wrap your polygons in an inner element to scale them as you wish. The viewBox controls the coordinate system of the objects it contains and the height and width attributes control how big it looks.

    
      
          
      
      
    
    

提交回复
热议问题