- HTML中文网
- 联系QQ:88526
- QQ交流群

- 微信公众号

border-right-color属性
含义:
border-right-color属性设置一个元素的的右边框的颜色。
注意:请始终把 border-style 属性声明到 border-color 属性之前,元素必须在改变其颜色之前获得边框
浏览器支持:
属性 | ![]() | ![]() | ![]() | ![]() | ![]() |
---|---|---|---|---|---|
border-right-color | 4.0 | 1.0 | 1.0 | 1.0 | 3.5 |
CSS语法:
border-right-color:color|transparent |inherit ;
属性值:
值 | 描述 |
color | 规定颜色值为颜色名称的边框颜色 |
transparent | 默认值。边框颜色为透明 |
inherit | 规定应该从父元素继承边框颜色 |
p{ width:100px; height: 100px; line-height: 100px; text-align: center; border:1px solid #ED28BB; border-right:15px solid; border-right-color:#F87A8C; }
点击 "运行实例" 按钮查看在线实例
效果图:
推荐手册