CSS svg 색상 지정

1 개요[ | ]

CSS svg 색상 지정
HTML svg 색상 지정
html
Copy
<style>
svg {
  width:50px;
  background-color: yellow;
}
path { stroke: red; }
</style>

<svg viewBox="0 -0.5 5 5">
  <path stroke="blue" d="M0 0h5M0 2h5M0 4h5" />
</svg>

2 같이 보기[ | ]