1
我已經看到了很多創建圓形進度條的解決方案。它們似乎都非常漫長和複雜。我想創建一個非常簡單的一個,只需在彼此頂部繪製兩個圓圈並剪切一部分外部圓圈,以創建一個小於100%的進度條外觀。剪輯路徑,如何創建一個圓形進度條?
我的HTML
<div class="outter">
<div class="inner"></div>
</div>
我的CSS
.outter {
background-color: #08a1db;
width: 100px;
height: 100px;
border-radius: 50%;
position: relative;
}
.inner {
background-color: white;
width: 84px;
height: 84px;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
margin: -42px 0 0 -42px;
}
現在我有使用夾路徑故障的部分。我無法從文檔中找出如何剪切外部圓圈並創建進度條的效果。有什麼建議麼?
如何將你所代表的旋轉程度,如果我們正在尋找過去的50%的進度? –
需要使用另一半圈。並畫。編輯所有deg。 – Hash
我明白了。我想我可以自己創造它。感謝您的幫助哈希。 –