안녕하세요!
CSS에 작은 원형 정적 표시를 만들고 싶지만 해결책을 찾을 수 없습니다. 왼쪽의 제곱 된 표시기는 괜찮습니다.하지만 너무 번쩍 거리므로 원합니다!
둥근 모서리 (스크린 샷의 오른쪽에있는 표시기)를 사용해 보았습니다. 모서리를 숨길 수있는 둥근 마스크를 추가 할 가능성이 있는지 궁금합니다 (cf. css3 마스크 : http://webkit.org/blog/181/css-masks/). img에만 해당됩니다 ...
이 솔루션은 모바일 웹 응용 프로그램이기 때문에 웹킷 브라우저에서만 작동합니다.
<div class="meter-wrap">
<div class="meter-value" style="background-color: #489d41; width: 70%;">
<div class="meter-text"> 70 % </div>
</div>
</div>
그리고 CSS : 여기
위의 이미지에서 (추한) 표시 만들 수있는 내 코드입니다.meter-wrap{
position: relative;
}
.meter-value {
background-color: #489d41;
}
.meter-wrap, .meter-value, .meter-text {
width: 30px; height: 30px;
/* Attempt to round the corner : (indicators at the right of the screenshot)
-webkit-border-radius : 15px;*/
}
.meter-wrap, .meter-value {
background: #bdbdbd top left no-repeat;
}
.meter-text {
position: absolute;
top:0; left:0;
padding-top: 2px;
color: #000;
text-align: center;
width: 100%;
font-size: 40%;
text-shadow: #fffeff 1px 1px 0;
}
둥근 진행 표시기 란 정확히 무엇을 의미합니까? 일반적으로 진행률은 선형이며, 끝까지 도달하므로 줄이됩니다. – rjmunro