2012-03-06 18 views

答えて

5

チェックアウトthis fiddle。 (つまり、レイアウトのあなたの一般的な手段に依存します。)けれどもあなたは、正しくテキストを整列させる必要があります

CSS:

div{ 
    -moz-border-radius: 50px/50px; 
    -webkit-border-radius: 50px 50px; 
    border-radius: 80px/80px;; 
    border:solid 21px #f00; 
    width:100px; 
    height:100px; 
    -webkit-animation: rotation 2s linear infinite; 
    -moz-animation: rotation 2s linear infinite; 
    -ms-animation: rotation 2s linear infinite; 
} 

@-webkit-keyframes rotation { 
    0% { -webkit-transform: rotate(0deg); } 
    100% { -webkit-transform: rotate(360deg); } 
} 
@-moz-keyframes rotation { 
    0% { -moz-transform: rotate(0deg); } 
    100% { -moz-transform: rotate(360deg); } 
} 
@-ms-keyframes rotation { 
    0% { -ms-transform: rotate(0deg); } 
    100% { -ms-transform: rotate(360deg); } 
} 
+0

をあなたにアレクサンダーをありがとう! –

+1

[このフィドル](http://jsfiddle.net/HS68a/3/)では、パディングを微調整してメッセージを中央揃えにする方法を示しています。 –

+0

cool!ありがとうアレクサンダー! :) –