Skip to content

Border Width

CSS 属性 border-width 用来设定元素边框宽度的样式。

全边框(上下左右)

Class属性
borderborder-width: 1px;
border-0border-width: 0px;
border-1border-width: 1px;
border-2border-width: 2px;
border-3border-width: 3px;
border-4border-width: 4px;
border-5border-width: 5px;
border-6border-width: 6px;
border-7border-width: 7px;
border-8border-width: 8px;
border-9border-width: 9px;
border-10border-width: 10px;

上 · 边框

Class属性
border-tborder-top-width: 1px;
border-t-0border-top-width: 0px;
border-t-1border-top-width: 1px;
border-t-2border-top-width: 2px;
border-t-3border-top-width: 3px;
border-t-4border-top-width: 4px;
border-t-5border-top-width: 5px;
border-t-6border-top-width: 6px;
border-t-7border-top-width: 7px;
border-t-8border-top-width: 8px;
border-t-9border-top-width: 9px;
border-t-10border-top-width: 10px;

下 · 边框

Class属性
border-bborder-bottom-width: 1px;
border-b-0border-bottom-width: 0px;
border-b-1border-bottom-width: 1px;
border-b-2border-bottom-width: 2px;
border-b-3border-bottom-width: 3px;
border-b-4border-bottom-width: 4px;
border-b-5border-bottom-width: 5px;
border-b-6border-bottom-width: 6px;
border-b-7border-bottom-width: 7px;
border-b-8border-bottom-width: 8px;
border-b-9border-bottom-width: 9px;
border-b-10border-bottom-width: 10px;

左 · 边框

Class属性
border-lborder-left-width: 1px;
border-l-0border-left-width: 0px;
border-l-1border-left-width: 1px;
border-l-2border-left-width: 2px;
border-l-3border-left-width: 3px;
border-l-4border-left-width: 4px;
border-l-5border-left-width: 5px;
border-l-6border-left-width: 6px;
border-l-7border-left-width: 7px;
border-l-8border-left-width: 8px;
border-l-9border-left-width: 9px;
border-l-10border-left-width: 10px;

右 · 边框

Class属性
border-rborder-right-width: 1px;
border-r-0border-right-width: 0px;
border-r-1border-right-width: 1px;
border-r-2border-right-width: 2px;
border-r-3border-right-width: 3px;
border-r-4border-right-width: 4px;
border-r-5border-right-width: 5px;
border-r-6border-right-width: 6px;
border-r-7border-right-width: 7px;
border-r-8border-right-width: 8px;
border-r-9border-right-width: 9px;
border-r-10border-right-width: 10px;