小白教程
所有教程
关于
Search
172.70.126.168
172.70.126.168
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Pr border left width”的源代码
本页内容
上一节:
Pr_border_left_style
下一节:
Pr_border_right
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:border-left-width}}[[Category:css reference|57]] = CSS border-left-width 属性 = 设置左边框的宽度: <sample title="" desc="" lang="html" hererun="1"> p { border-style:solid; border-left-width:15px; } </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> p { border-style:solid; border-left-width:15px; } </style> </head> <body> <p><b>注意:</b>"border-left-width" 单独使用没有效果.要先使用 "border-style" 属性设置borders.</p> </body> </html> </run> == 属性定义及使用说明 == border-left-width 属性设置元素的左边框的宽度。 只有当边框样式不是 none 时才起作用。如果边框样式是 none,边框宽度实际上会重置为 0。不允许指定负长度值。 '''注意:'''请始终在 border-left-width 属性之前声明 border-style 属性。元素只有在获得边框之后,才能改变其边框的宽度。 {| class="table table-striped table-hover" | 默认值: | medium |- | 继承性: | no |- | 版本: | CSS1 |- | JavaScript 语法: | object.style.borderLeftWidth="thick" |} == 浏览器支持 == 表格中的数字表示支持该属性的第一个浏览器版本号。 {| class="table table-striped table-hover" ! 属性 ! Chrome ! Internet Explorer / Edge ! Firefox ! Safari ! Opera |- | border-left-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |} == 属性值 == {| class="table table-striped table-hover" ! 值 ! 描述 |- | thin | 定义细的左边框。 |- | medium | 默认值。定义中等的左边框。 |- | thick | 定义粗的左边框。 |- | length | 允许您自定义左边框的宽度。 |- | inherit | 规定应该从父元素继承边框宽度。 |} == 相关文章 == CSS 教程: [[css border|CSS Border]] CSS 参考手册: [[pr border left|border-left 属性]]
返回至“
Pr border left width
”。
上一节:
Pr_border_left_style
下一节:
Pr_border_right