- CSS 教程
- CSS - 首页
- CSS - 路线图
- CSS - 简介
- CSS - 语法
- CSS - 选择器
- CSS - 包含
- CSS - 测量单位
- CSS - 颜色
- CSS - 背景
- CSS - 字体
- CSS - 文本
- CSS - 图片
- CSS - 链接
- CSS - 表格
- CSS - 边框
- CSS - 块级边框
- CSS - 内联边框
- CSS - 外边距
- CSS - 列表
- CSS - 内边距
- CSS - 光标
- CSS - 轮廓
- CSS - 尺寸
- CSS - 滚动条
- CSS - 内联块
- CSS - 下拉菜单
- CSS - 可见性
- CSS - 溢出
- CSS - Clearfix
- CSS - 浮动
- CSS - 箭头
- CSS - 调整大小
- CSS - 引号
- CSS - 顺序
- CSS - 位置
- CSS - 连字符
- CSS - 悬停
- CSS - 显示
- CSS - 聚焦
- CSS - 缩放
- CSS - 平移
- CSS - 高度
- CSS - 连字符字符
- CSS - 宽度
- CSS - 不透明度
- CSS - Z-Index
- CSS - 底部
- CSS - 导航栏
- CSS - 覆盖层
- CSS - 表单
- CSS - 对齐
- CSS - 图标
- CSS - 图片库
- CSS - 注释
- CSS - 加载器
- CSS - 属性选择器
- CSS - 组合器
- CSS - 根元素
- CSS - 盒模型
- CSS - 计数器
- CSS - 剪裁
- CSS - 书写模式
- CSS - Unicode-bidi
- CSS - min-content
- CSS - All
- CSS - Inset
- CSS - Isolation
- CSS - Overscroll
- CSS - Justify Items
- CSS - Justify Self
- CSS - Tab Size
- CSS - 指针事件
- CSS - Place Content
- CSS - Place Items
- CSS - Place Self
- CSS - Max Block Size
- CSS - Min Block Size
- CSS - Mix Blend Mode
- CSS - Max Inline Size
- CSS - Min Inline Size
- CSS - Offset
- CSS - Accent Color
- CSS - User Select
- CSS 高级
- CSS - 网格布局
- CSS - 网格布局
- CSS - Flexbox
- CSS - 可见性
- CSS - 定位
- CSS - 层
- CSS - 伪类
- CSS - 伪元素
- CSS - @规则
- CSS - 文本效果
- CSS - 分页媒体
- CSS - 打印
- CSS - 布局
- CSS - 验证
- CSS - 图片精灵
- CSS - Important
- CSS - 数据类型
- CSS3 教程
- CSS3 - 教程
- CSS - 圆角
- CSS - 边框图片
- CSS - 多背景
- CSS - 颜色
- CSS - 渐变
- CSS - 盒阴影
- CSS - 盒装饰中断
- CSS - 光标颜色
- CSS - 文本阴影
- CSS - 文本
- CSS - 2d 变换
- CSS - 3d 变换
- CSS - 过渡
- CSS - 动画
- CSS - 多列
- CSS - 盒尺寸
- CSS - 提示框
- CSS - 按钮
- CSS - 分页
- CSS - 变量
- CSS - 媒体查询
- CSS - 函数
- CSS - 数学函数
- CSS - 遮罩
- CSS - 形状
- CSS - 样式图片
- CSS - 特异性
- CSS - 自定义属性
- CSS 响应式
- CSS RWD - 简介
- CSS RWD - 视口
- CSS RWD - 网格视图
- CSS RWD - 媒体查询
- CSS RWD - 图片
- CSS RWD - 视频
- CSS RWD - 框架
- CSS 工具
- CSS - PX 到 EM 转换器
- CSS - 颜色选择器和动画
- CSS 资源
- CSS - 有用资源
- CSS - 讨论
CSS - border-end-start-radius 属性
CSS border-end-start-radius 属性定义元素块级末端和内联起始端之间角的半径。此属性是逻辑边框半径,这意味着其值取决于元素的书写模式、方向和文本方向。
语法
border-end-start-radius: 0 | length | percentage | initial | inherit;
属性值
| 值 | 描述 |
|---|---|
| 0 | 它不显示任何圆角效果。默认值。 |
| 长度 | 它使用长度值定义块级末端和内联起始端角的圆度。 |
| 百分比 | 它使用百分比值定义块级末端和内联起始端角的圆度。 |
| initial | 这将属性设置为其默认值。 |
| inherit | 这从父元素继承属性。 |
CSS 边框末端起始半径属性示例
以下示例使用不同的值解释了 border-end-start-radius 属性。
边框末端起始半径为零值
为了不在块的末端和内联角的起始处有任何圆角效果,我们可以使用 0。在以下示例中,使用了 0 值。
示例
<!DOCTYPE html>
<html>
<head>
<style>
.rounded-box {
width: 150px;
height: 150px;
border: 3px solid green;
border-end-start-radius: 0;
}
</style>
</head>
<body>
<h2>
CSS border-end-start-radius property
</h2>
<div class="rounded-box">
No rounded corner for block-end and inline-start corner.
</div>
</body>
</html>
边框末端起始半径为长度值
为了在块的末端和内联角的起始处产生圆角效果,我们可以使用长度值(例如 10px)来指定半径。在以下示例中,使用了 80px 值。
示例
<!DOCTYPE html>
<html>
<head>
<style>
.rounded-box1 {
width: 150px;
height: 150px;
border: 3px solid green;
border-end-start-radius: 80px;
}
.rounded-box2 {
width: 150px;
height: 150px;
border: 3px solid green;
border-end-start-radius: 80px 80px;
}
</style>
</head>
<body>
<h2>
CSS border-end-start-radius property
</h2>
<p class="rounded-box1">
Rounded corner for block-end and inline-start
corner with single value.
</p>
<p class="rounded-box2">
Rounded corner for block-end and inline-start
corner with two values.
</p>
</body>
</html>
边框末端起始半径为百分比值
为了在块的末端和内联角的起始处产生圆角效果,我们可以使用百分比值(例如 10%)来指定半径。在以下示例中,使用了 50% 值。
示例
<!DOCTYPE html>
<html>
<head>
<style>
.rounded-box1 {
width: 150px;
height: 150px;
border: 3px solid green;
border-end-start-radius: 50%;
}
.rounded-box2 {
width: 150px;
height: 150px;
border: 3px solid green;
border-end-start-radius: 50% 50%;
}
</style>
</head>
<body>
<h2>
CSS border-end-start-radius property
</h2>
<p class="rounded-box1">
Rounded corner for block-end and inline-start
corner with single value.
</p>
<p class="rounded-box2">
Rounded corner for block-end and inline-start
corner with two values.
</p>
</body>
</html>
带方向的边框末端起始半径
在 border-end-start-radius 上下文中,direction 参数决定要圆哪个角。在 LTR 方向中,左下角是圆的,而在 RTL 方向中,右下角是圆的。LTR 是默认方向。这些在以下示例中显示。
示例
<!DOCTYPE html>
<html>
<head>
<style>
#right {
width: 150px;
height: 150px;
border: 3px solid green;
border-end-start-radius: 120px 60px;
direction: ltr;
}
#left {
width: 150px;
height: 150px;
border: 3px solid green;
border-end-start-radius: 120px 60px;
direction: rtl;
}
</style>
</head>
<body>
<h2>
CSS border-end-start-radius property
</h2>
<p id="right">
block-end and inline-start rounded
corner using direction: ltr
</p>
<p id="left">
block-end and inline-start rounded
corner using direction: rtl
</p>
</body>
</html>
带书写模式的边框末端起始半径
border-end-start-radius 属性可以与 writing-mode: vertical-lr 一起使用,它将文本从上到下、从左到右垂直排列。类似地,使用 writing-mode: vertical-rl,它将文本从上到下、从右到左垂直排列。这些在以下示例中显示。
示例
<html>
<head>
<style>
.rounded-box {
width: 150px;
height: 150px;
border: 3px solid green;
margin: 10px;
}
.top-left-lr {
border-end-start-radius: 30%;
writing-mode: vertical-lr;
}
.top-left-rl {
border-end-start-radius: 30%;
writing-mode: vertical-rl;
}
</style>
</head>
<body>
<h2>
CSS border-end-start-radius property</h2>
<div class="rounded-box top-left-lr">
block-end and inline-start rounded
corner using vertical-lr.
</div>
<div class="rounded-box top-left-rl">
block-end and inline-start rounded
corner using vertical-rl.
</div>
</body>
</html>
支持的浏览器
| 属性 | ![]() |
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|---|---|
| border-end-start-radius | 89.0 | 89.0 | 66.0 | 15.0 | 75.0 |
css_properties_reference.htm
广告




