简体   繁体   中英

svg rect multiple fill colors

I have a svg rect element. I have "fill: rgb(31, 119, 180);" which renders the rect on the left side of image below.

How can I set the rect style to render the multiple borders like the one on right?

在此处输入图片说明

This isn't possible. Instead, you could use a second rectangle. The first one would have a white background with a black border, and the interior one would be blue. Or the first one could just be black, and the interior one would be blue with a white stroke.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM