html样式中左侧实线居中,border-left-style

border-left-style

border-left-style CSS 属性,设置左边框线样式。

示例/* Keyword values */

border-left-style: none;

border-left-style: hidden;

border-left-style: dotted;

border-left-style: dashed;

border-left-style: solid;

border-left-style: double;

border-left-style: groove;

border-left-style: ridge;

border-left-style: inset;

border-left-style: outset;

/* Global values */

border-left-style: inherit;

border-left-style: initial;

border-left-style: unset;

浏览器支持1878cdc442c78be424141e8d23fcc3f4.gif97025d18480c559ff507c6e3a9b8aac8.gif6f7088d28d6f7ea604e66cfba3b1e71d.gifbe610315b796c1b1d41a4e5496e268a7.gif2a97a8c5460fd66b35928591ac5b9c39.gif

浏览器都支持border-left-style

语法border-left-style: none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset如果border-width等于0,本属性将失去作用。

对应的脚本特性为borderLeftStyle。

取值:hidden:隐藏边框。

dotted:点状轮廓。

dashed:虚线轮廓。

solid:实线轮廓

double:双线轮廓。两条单线与其间隔的和等于指定的

groove:3D凹槽轮廓。

ridge:3D凸槽轮廓。

inset:3D凹边轮廓。

outset:3D凸边轮廓。默认值none

适用于所有元素

继承性无

动画性否

计算值指定值

例子/* Define look of the table */

table {

border-width: 2px;

background-color: #52E385;

}

tr, td {

padding: 3px;

}

/* border-left-style example classes */

.b1 {border-left-style: none;}

.b2 {border-left-style: hidden;}

.b3 {border-left-style: dotted;}

.b4 {border-left-style: dashed;}

.b5 {border-left-style: solid;}

.b6 {border-left-style: double;}

.b7 {border-left-style: groove;}

.b8 {border-left-style: ridge;}

.b9 {border-left-style: inset;}

.b10 {border-left-style: outset;}

nonehiddendotteddashed
soliddoublegrooveridge
insetoutset
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值