Progress Bar with HTML and CSS

前端 未结 15 1134
耶瑟儿~
耶瑟儿~ 2020-12-02 05:13

I want to create a progress bar like in the below image:

\"Progress

I have no idea about

15条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 05:34

    Create an element which shows the left part of the bar (the round part), also create an element for the right part. For the actual progress bar, create a third element with a repeating background and a width which depends on the actual progress. Put it all on top of the background image (containing the empty progress bar).

    But I suppose you already knew that...

    Edit: When creating a progress bar which do not use textual backgrounds. You can use the border-radius to get the round effect, as shown by Rikudo Sennin and RoToRa!

提交回复
热议问题