Ergebnisse erzielenImplementierungscodehtml<div Klasse="wrap"> <div Klasse="Fortschritt-radial Fortschritt-25"> <div class="overlay">25 %</div> </div> <div Klasse="Fortschritt-radial Fortschritt-50"> <div class="overlay">50 %</div> </div> <div Klasse="Fortschritt-radialer Fortschritt-75"> <div class="overlay">75 %</div> </div> <div Klasse="Fortschritt-radial Fortschritt-90"> <div class="overlay">90 %</div> </div> </div> CSS@import-URL (https://fonts.googleapis.com/css?family=Noto+Sans); Körper { Polsterung: 30px 0; Hintergrundfarbe: #2f3439; Schriftfamilie: „Noto Sans“, serifenlos; } .wickeln { Breite: 600px; Rand: 0 automatisch; } /* ------------------------------------- * Bar-Container * ------------------------------------- */ .Fortschritt-radial { schweben: links; Rand rechts: 30px; Position: relativ; Breite: 100px; Höhe: 100px; Randradius: 50 %; Rand: 2px durchgezogen #2f3439; Hintergrundfarbe: Tomate; } /* ------------------------------------- * Optionaler zentrierter Kreis mit Text * ------------------------------------- */ .fortschritt-radial .overlay { Position: absolut; Breite: 60px; Höhe: 60px; Hintergrundfarbe: #fffde8; Randradius: 50 %; Rand links: 20px; Rand oben: 20px; Textausrichtung: zentriert; Zeilenhöhe: 60px; Schriftgröße: 16px; } /* ------------------------------------- * Mixin für Fortschritts-%-Klasse * ------------------------------------- */ .Fortschritt-0 { Hintergrundbild: linearer Farbverlauf (90 Grad, #2f3439 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (90 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-5 { Hintergrundbild: linearer Farbverlauf (90 Grad, #2f3439 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (108 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-10 { Hintergrundbild: linearer Farbverlauf (90 Grad, #2f3439 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (126 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-15 { Hintergrundbild: linearer Farbverlauf (90 Grad, #2f3439 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (144 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-20 { Hintergrundbild: linearer Farbverlauf (90 Grad, #2f3439 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (162 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-25 { Hintergrundbild: linearer Farbverlauf (90 Grad, #2f3439 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (180 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-30 { Hintergrundbild: linearer Farbverlauf (90 Grad, #2f3439 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (198 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-35 { Hintergrundbild: linearer Farbverlauf (90 Grad, #2f3439 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (216 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-40 { Hintergrundbild: linearer Farbverlauf (90 Grad, #2f3439 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (234 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-45 { Hintergrundbild: linearer Farbverlauf (90 Grad, #2f3439 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (252 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-50 { Hintergrundbild: linearer Farbverlauf (-90 Grad, #ff6347 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (270 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-55 { Hintergrundbild: linearer Farbverlauf (-72 Grad, #ff6347 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (270 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-60 { Hintergrundbild: linearer Farbverlauf (-54 Grad, #ff6347 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (270 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-65 { Hintergrundbild: linearer Farbverlauf (-36 Grad, #ff6347 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (270 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-70 { Hintergrundbild: linearer Farbverlauf (-18 Grad, #ff6347 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (270 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-75 { Hintergrundbild: linearer Farbverlauf (0 Grad, #ff6347 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (270 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-80 { Hintergrundbild: linearer Farbverlauf (18 Grad, #ff6347 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (270 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-85 { Hintergrundbild: linearer Farbverlauf (36 Grad, #ff6347 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (270 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-90 { Hintergrundbild: linearer Farbverlauf (54 Grad, #ff6347 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (270 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-95 { Hintergrundbild: linearer Farbverlauf (72 Grad, #ff6347 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (270 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } .Fortschritt-100 { Hintergrundbild: linearer Farbverlauf (90 Grad, #ff6347 50 %, rgba (0, 0, 0, 0) 50 %, rgba (0, 0, 0, 0)), linearer Farbverlauf (270 Grad, #ff6347 50 %, #2f3439 50 %, #2f3439); } Oben sind die Details des von CSS implementierten kreisförmigen Fortschrittsbalkens. Weitere Informationen zum von CSS implementierten kreisförmigen Fortschrittsbalken finden Sie in den anderen verwandten Artikeln auf 123WORDPRESS.COM! |
<<: Beispielcode zur Implementierung eines einfachen ListViews-Effekts in HTML
>>: Sollte ich für das mobile Web-WAP Bootstrap oder jQuery Mobile verwenden?
Zusammenfassung In einigen Szenarien kann eine so...
1. Leistungsschema: Einführung In MySQL 5.7 wurde...
Befehl „touch“ Es hat zwei Funktionen: Eine beste...
Ein Datensatz eines Online-MySQL-Transaktionsprob...
1. Vermeiden Sie es, die Seite als XML-Typ zu dek...
1. Projektstruktur 2. Rufen Sie Tomcat.java auf P...
<br />Die offizielle Version der Baidu-Enzyk...
Während des Entwicklungsprozesses stoße ich häufi...
Mit dem Befehl „mysql explain“ wird gezeigt, wie ...
Inhaltsverzeichnis 1. Löschen Sie die alte Versio...
Inhaltsverzeichnis Array-Deduplizierung 1. from()...
Derzeit nutzen die meisten Linux-Benutzer entwede...
Gehen Sie im Hive-Installationsverzeichnis in das...
1 Hintergrund Vor kurzem sind im Online-Geschäft ...
Vorwort Dieser Artikel fasst hauptsächlich einige...