您的位置
主页 > 网站技术 > CSS/HTML > » 正文

css图标制作教程制作云图标

来源: 站长圈 点击:

点评:模仿某个云端软件的图标,用css做了一个云的图像,利用css3的选择器nth-of-type()设定p的第N个子元素以及style的边框长宽度属性,有需要的朋友可以参考下,希望对大家有所帮助!

复制代码代码如下:

<p class="logo">

<p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p>

</p> 

复制代码代码如下:

body{

background:#ddd

}</p> <p>.logo{

width:400px;

border:30px solid #3FB7F3;

height:210px;

background:#3FB7F3;

position:relative;

overflow:hidden;

margin:100px auto;</p> <p>}

.logo p{

border:20px solid #fff;

width:100px;

height:80px;

border-radius:50%;

position:absolute;

top:230px;

left:0;

}

.logo p:nth-of-type(1){

top:56px;

left:88px;

border-right-color: transparent;

border-bottom-color: transparent;

}</p> <p>.logo p:nth-of-type(2){

width:65px;

height:65px;

top:106px;

left:28px;

border-right-color: transparent;

}</p> <p>.logo p:nth-of-type(3){

width:114px;

height:114px;

top:6px;

left:156px;

border-bottom-color: transparent;

}</p> <p>.logo p:nth-of-type(4){

width:95px;

height:95px;

top:78px;

left:239px;

border-left-color: transparent;

}</p> <p>.logo p:nth-of-type(5){

width:100px;

height:100px;

top:97px;

left:253px;

background:#3FB7F3;

border:0

}</p> <p>.logo p:nth-of-type(6){

width:120px;

height:120px;

top:26px;

left:172px;

background:#3FB7F3;

border:0

}</p> <p>

.logo p:nth-of-type(7){

width:100px;

height:100px;

top:74px;

left:106px;

background:#3FB7F3;

border:0

}</p> <p>.logo p:nth-of-type(8){

width:70px;

height:70px;

top:124px;

left:48px;

background:#3FB7F3;

border:0

}</p> <p>.logo p:nth-of-type(9){

width:247px;

height:55px;

top:138px;

left:76px;

border-radius:0;

background:#3FB7F3;

border:0;

border-bottom:20px solid #fff

}




首页  - 关于站长圈  - 广告服务  - 联系我们  - 关于站长圈  - 网站地图  - 版权声明