![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
svg
骑着蜗牛追星星呐
这个作者很懒,什么都没留下…
展开
-
svg文本换行
方法:使用 foreignObject 嵌套body-div(其他html标签)demo:<foreignObject width="xxx" height="xxx" x="8" y="xxx" fill="#000" xml:space='preserve'> <body xmlns="http://www.w3.org/1999/xhtml" class="svg-body"> <div class="xxx" style="xxx"> xxx原创 2021-11-19 18:26:40 · 888 阅读 · 0 评论 -
svg写入/识别html元素和css样式
svg写入/识别html元素和css样式识别html的方法:使用foreignObject 元素嵌套html元素<foreignObject width="xxx" height="xxx" x="8" y="0"> <body xmlns="http://www.w3.org/1999/xhtml" class="svg-body"> <div class="break-word text-div text-align-center" style="font-wei原创 2021-11-19 18:19:32 · 308 阅读 · 0 评论