css-画的第一个爱心

html :

<div class="main">

<div class="xin2">

</div>

<div class="xin3">

</div>

<div class="zhen">

</div>

</div>

css :

.xin2{

      width: 100px;

    height: 100px;

    border:1px solid rgb(160, 201, 136);

    background-color: rgb(160, 201, 136);

    margin:300px 0px 0px 300px;

    border-radius:50%;

    float:left;

}

.xin3{

  width: 100px;

    height: 100px;

    border:1px solid rgb(214, 134, 134);

    background-color: rgb(214, 134, 134);

    margin:250px 0px 0px 0px;

    border-radius:100%;

    float:left;

    position: relative;

    right: 50px;

}

.zhen{

    width: 100px;

    height: 100px;

    border:1px solid rgb(189, 166, 226);

    background-color: rgb(189, 166, 226);

    margin: 300px 0px 0px 0px;

    float: left;

    position: relative;

    right: 152px;

}

.main{

    transform: rotate(45deg);

}

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容