码迷,mamicode.com
首页 > 其他好文 > 详细

1-border-radius 画圆

时间:2017-04-12 23:18:41      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:圆形   round   nbsp   htm   html   border   div   idt   class   

  .circle{
            width: 100px;
            height: 100px;
            background-color: aqua;
            border-radius: 50px;
        }

        .topCircle{
            width: 100px;
            height: 50px;
            background-color: aqua;
            border-radius: 50px 50px 0px 0px;
        }


html 代码。

 <h2>圆形</h2>
    <div class="circle">

    </div>

    <h2>上半圆</h2>
    <div class="topCircle">

    </div>

 

1-border-radius 画圆

标签:圆形   round   nbsp   htm   html   border   div   idt   class   

原文地址:http://www.cnblogs.com/xianrongbin/p/6701695.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!