为SVG图像添加边框 [英] Adding border to SVG image
本文介绍了为SVG图像添加边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将SVG图像包装在边框内(即-将CSS的边框放在该图像周围).
Is it possible to wrap a SVG image inside a border (that is - putting a border from CSS around that image) .
推荐答案
在图像上填充一个<rect>
,该图像为fill ="none".您可以使用<rect>
的笔触作为边框.
Draw a <rect>
round the image which is fill="none". You can use the stroke of the <rect>
as the border.
这篇关于为SVG图像添加边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文