Dies ist eine relativ einfache Frage, aber ich googelte herum ohne Glück. Ich versuche, den folgenden CSS-Code in ein Style-Tag auf meiner Seite einzufügen. Das Symbol "@" wird im Style-Tag nicht erkannt. Es funktioniert in der CSS-Datei nur nicht das style-Tag, und für organisatorische/Debugging-Zwecke würde ich es jetzt im Stil-Tag und nicht in der CSS. Irgendwelche Ideen?Wie @ -webkit im style-Tag zu verwenden ist
.spinnerClass {
height: 50px;
width: 50px;
margin: 0px auto;
-webkit-animation: rotation .8s linear infinite;
-moz-animation: rotation .8s linear infinite;
-o-animation: rotation .8s linear infinite;
animation: rotation 0.8s linear infinite;
border-left: 10px solid rgb(0,150,240);
border-right: 10px solid rgb(0,150,240);
border-bottom: 10px solid rgb(0,150,240);
border-top: 10px solid rgb(100,0,200);
border-radius: 100%;
background-color: rgb(200,100,250);
}
@-webkit-keyframes rotation {
from {-webkit-transform: rotate(0deg);}
to {-webkit-transform: rotate(360deg);}
}
@-moz-keyframes rotation {
from {-moz-transform: rotate(0deg);}
to {-moz-transform: rotate(360deg);}
}
@-o-keyframes rotation {
from {-o-transform: rotate(0deg);}
to {-o-transform: rotate(360deg);}
}
@keyframes rotation {
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}
hmm gut siehe aktualisierte Beschreibung, dieser Code wird in der CSS-Datei gut erkannt. Das ist CSS 3 Rotation. – mgmedick
In welchem Browser tritt dies auf? Alle Browser? – timolawl
Hallo @timolawl danke für die Rückmeldung an mich. Ich habe das Problem gefunden, die Antwort ist unten. Vielen Dank. – mgmedick