[关闭]
@yuanzhimeng 2016-12-04T04:26:35.000000Z 字数 677 阅读 415

十天精通CSS3

未分类


一、边框

1-1 边框圆角

1-1-1 参数

border-radius:5px 6px 7px 8px

1-1-2 实例

1-1-2-1 圆形

  1. .div1{
  2. width: 100px;
  3. height: 100px;
  4. border: 1px solid red;
  5. border-radius: 50px;
  6. }
  1. <div class='div1'></div>

1-1-2-2 半圆

  1. .div2{
  2. width: 100px;
  3. height: 100px;
  4. border: 1px solid red;
  5. border-radius: 50px 50px 0px 0px;
  6. }
  1. <div class='div2'></div>

1-1-2-3 自定义1

  1. .div2{
  2. width: 150px;
  3. height: 50px;
  4. border: 1px solid red;
  5. border-radius: 0px 25px 25px 0px;
  6. }
  1. <div class='div2'></div>

1-1-2-3 自定义2

  1. .div2{
  2. width: 100px;
  3. height: 100px;
  4. border: 1px solid red;
  5. border-radius: 25px;
  6. }
  1. <div class='div2'></div>
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注