Possible to build an svg that has fluid horizontal scaling, similar to old table-slice method?

前端 未结 4 1441
野的像风
野的像风 2020-12-30 06:23

I am attempting to build an svg that can be scaled horizontally and fluidly, similar to the old table-sliced images used to scale a header fluidly across the top of a page.

4条回答
  •  悲&欢浪女
    2020-12-30 06:50

    It's actually possible without Javascript by using foreignObject. But it will not work in Internet Explorer, bcs. IE doesn't support foreignObject. See my article at http://w3.eleqtriq.com/2014/03/the-holy-grail-of-image-scaling/

提交回复
热议问题