“Pr border left”的版本间差异
本页内容
(创建页面,内容为“{{DISPLAYTITLE:border-left}}9 = CSS border-left 属性 = 设置左边框的样式: <sample title="" desc="" lang="html" hererun="1"> p { border-style:solid; border-left:thick double #ff0000; } </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> p { border-style:solid; border-left:thick double #ff0000; } </style> </head> <body> <p>This is some…”) |
无编辑摘要 |
||
第56行: | 第56行: | ||
{| class="table table-striped table-hover" | {| class="table table-striped table-hover" | ||
! 属性 | ! 属性 | ||
! | ! Chrome | ||
! | ! Internet Explorer / Edge | ||
! | ! Firefox | ||
! | ! Safari | ||
! | ! Opera | ||
|- | |- | ||
| border-left | | border-left |
2022年8月19日 (五) 04:31的版本
CSS border-left 属性
设置左边框的样式:
示例
p
{
border-style:solid;
border-left:thick double #ff0000;
}
属性定义及使用说明
border-left 简写属性把左边框的所有属性设置到一个声明中。
可以按顺序设置如下属性: border-left-width, border-left-style, and border-left-color.
如果不设置其中的某个值,也不会出问题,比如 border-left:solid #ff0000; 也是允许的。
默认值: | not specified |
继承性: | no |
版本: | CSS1 |
JavaScript 语法: | object.style.borderLeft="3px solid blue" |
浏览器支持
表格中的数字表示支持该属性的第一个浏览器版本号。
属性 | Chrome | Internet Explorer / Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
border-left | 1.0 | 4.0 | 1.0 | 3.5 | 1.0 |
属性值
值 | 描述 |
---|---|
border-left-width | 规定左边框的宽度。参阅:border-left-width 中可能的值。 |
border-left-style | 规定左边框的样式。参阅:border-left-style 中可能的值。 |
border-left-color | 规定左边框的颜色。参阅:border-left-color 中可能的值。 |
inherit | 规定应该从父元素继承 border-left 属性的设置。 |
相关文章
CSS 教程: CSS Border