CSS curved line with rounded
问题 Hi I need create a line like this image but I don't know how to end rounded line-edge .line{ position: absolute; width: 55px; height: 10px; border: solid 12.5px #fff; border-color: white transparent transparent transparent; border-radius: 50%/100% 100% 0 0; transform: rotate(180deg); margin-left: 10px; margin-top: 50px;} Can you help me to end the line with redounded form? 回答1: You may add two background layers to create the circles at the edges like below: .line { --c:20px; /* control the