“Pr border right”的版本间差异
本页内容
(创建页面,内容为“{{DISPLAYTITLE:border-right}}13 = CSS border-right-color 属性 = 设定右边框的颜色: <sample title="" desc="" lang="html" hererun="1"> p { border-style:solid; border-right-color:#ff0000 } </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> p { border-style:solid; border-right-color:#ff0000; } </style> </head> <body> <p>这是段落中…”) |
无编辑摘要 |
||
(未显示同一用户的1个中间版本) | |||
第1行: | 第1行: | ||
{{DISPLAYTITLE:border-right}}[[Category:css | {{DISPLAYTITLE:border-right}}[[Category:css reference|58]] | ||
= CSS border-right-color 属性 = | = CSS border-right-color 属性 = | ||
第56行: | 第56行: | ||
{| class="table table-striped table-hover" | {| class="table table-striped table-hover" | ||
! 属性 | ! 属性 | ||
! | ! Chrome | ||
! | ! Internet Explorer / Edge | ||
! | ! Firefox | ||
! | ! Safari | ||
! | ! Opera | ||
|- | |- | ||
| border-right | | border-right |
2022年8月19日 (五) 04:43的最新版本
CSS border-right-color 属性
设定右边框的颜色:
示例
p
{
border-style:solid;
border-right-color:#ff0000
}
属性定义及使用说明
border-right-color属性设置一个元素的的右边框的颜色。
注意 请始终把 border-style 属性声明到 border-color 属性之前。元素必须在您改变其颜色之前获得边框。
默认值: | not specified |
继承: | no |
版本: | CSS1 |
JavaScript 语法: | object object.style.borderRightColor="blue" |
浏览器支持
表格中的数字表示支持该属性的第一个浏览器版本号。
属性 | Chrome | Internet Explorer / Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
border-right | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
属性值
值 | 描述 |
---|---|
color_name | 规定颜色值为颜色名称的边框颜色(比如 red)。 |
hex_number | 规定颜色值为十六进制值的边框颜色(比如 #ff0000)。 |
rgb_number | 规定颜色值为 rgb 代码的边框颜色(比如 rgb(255,0,0))。 |
transparent | 默认值。边框颜色为透明。 |
inherit | 规定应该从父元素继承边框颜色。 |
相关文章
CSS 教程: CSS Border
CSS 参考手册: border-right 属性