2014-02-25 49 views
0

enter image description here任何人都可以幫助我通過CSS來繪製這個圖標嗎?

我不太瞭解如何通過CSS創建圖標,但我只是想知道是否有一種方法可以使用它來繪製上述圖標。

+0

我只能使用邊界半徑的圓:50% –

+0

CSS是一種樣式,不拉絲圖標。沒有更好的photoshop? –

+0

你能畫一條線嗎?你能改變一條線嗎? –

回答

5

是的!

這就是說,有沒有特別的原因不使用和圖像,圖標或glyph

FIDDLE

HTML

<div></div> 

CSS

div { 
    border-radius:999px; 
    height:100px; 
    width:100px; 
    background:#59ABD5; 
    position:relative; 
    display:inline-block; 
} 
div:before, div:after { 
    position:absolute; 
    display:inline-block; 
    content:''; 
    background:white; 
    border-radius:5px; 
} 
div:after { 
    left:45px; 
    width:8px; 
    height:45px; 
    top:10px; 
} 
div:before { 
    left:18px; 
    width:40px; 
    height:8px; 
    top:60px; 
    -webkit-transform: rotate(-50deg); 
    -moz-transform: rotate(-50deg); 
    -o-transform: rotate(-50deg); 
    transform: rotate(-50deg); 
} 
相關問題