最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
css中border-radius用法详解
时间:2022-06-25 09:03:31 编辑:袖梨 来源:一聚教程网
border-radius:由浮点数字和单位标识符组成的长度值。
border-top-left-radius --- 左上
border-top-right-radius --- 右上
border-bottom-right-radius --- 右下
border-bottom-left-radius --- 左下
说明:第一个值是水平半径,如果为0则为直角
圆形
代码如下 | 复制代码 |
border-radius:50px; width:100px; height:100px; border:1px solid red; |
半圆
代码如下 | 复制代码 |
border-radius: 100px 0px 0px 100px; height: 100px; width: 50px; |
四分之一
代码如下 | 复制代码 |
border-radius:100px; width:100px; height:100px; border:1px solid red; |
圆角
代码如下 | 复制代码 |
border-radius: 10px; height: 60px; width: 100px; |
弧形
代码如下 | 复制代码 |
border-radius: 100px 0px 0px 0px; height: 100px; width: 100px; border-left: 1px solid red;border-top: 1px solid red; |
相关文章
- 荒原曙光奇物愈合珍珠怎么获得 奇物愈合珍珠获取攻略 10-15
- 荒原曙光黏土怎么获得 黏土获取攻略 10-15
- 荒原曙光奇物收容箱子怎么获得 奇物收容箱子获取攻略 10-15
- 荒原曙光雪莲怎么获得 雪莲获取攻略 10-15
- 荒原曙光怎么驯服动物 驯服动物方法 10-15
- 洛克王国世界火灵石怎么获得 火灵石获取攻略 10-15