Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以以与它相同的方式操作 SVG rect 的边框border-left-width,border-right-width等等?
border-left-width
border-right-width
既然你问了,答案恐怕是否定的。如果您想有选择地更改矩形的边,则必须将其绘制为四条单独的线。
试试这个,把它改成你的。
<svg width="400" height="110"> <rect width="300" height="100" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)" /> </svg>