2016-09-26 2 views

답변

1

polyline 요소를 사용할 수 있습니다. 우리는 당신이 이미지를 제공 한 것처럼 만들 수 없습니다

.contain-demo { 
 
    margin: 25px auto; 
 
    text-align: center; 
 
} 
 

 
.p { 
 
    text-align: center; 
 
    margin-top: 140px; 
 
}
<div class="contain-demo"> 
 
    <svg width="150" height="200"> 
 
    <desc>First orange polyline demonstrating white fill on open path.</desc> 
 
    <polyline points="0,40 40,40 40,80 80,80 80,120 120,120 120,160" fill="white" stroke="#D07735" stroke-width="6" /> 
 
    </svg> 
 
    <svg width="150" height="200"> 
 
     <desc>Second orange polyline demonstrating yellow fill on open path.</desc> 
 
     <polyline points="0,40 40,40 40,80 80,80 80,120 120,120 120,160" fill="#F9F38C" stroke="#D07735" stroke-width="6" /> 
 
    </svg> 
 
</div>

+0

좋은 접근 방식이지만 svg는 html의 일부가 아니므로'polyline'은 html 요소가 아닌 svg 요소입니다. – connexo

+0

좋아, 나는 뭔가 배웠다! :) 나는 그것을 곧 바꿀 것이다. – Fralec

관련 문제