CSS border-bottom-width 属性

Definition and usage

The border-bottom-width attribute sets the width of the bottom border of the element。

Only takes effect when the border style is not none。If the border style is none,the border width will actually reset to 0。Negative length values are not allowed。

ការកត់សម្គាល់:Always declare the border-style attribute before the border-bottom-width attribute。The element must have a border before it can change its border width。

see also:

CSS tutorial:CSS 边框

CSS reference manual:border-bottom attribute

HTML DOM reference manual:borderBottomWidth attribute

example

set the bottom border width:

p
  {
  border-style:solid;
  border-bottom-width:15px;
  }

try it yourself

CSS syntax

border-bottom-width: medium|thin|thick|length|initial|inherit;

attribute value

value description
thin define a thin bottom border。
medium តម្លៃការដំណើរការរដ្ឋាភិបាល។ កំណត់កម្ពស់ខាងក្រោមនៃខ្សែក្រោមកម្រិតមធ្យម។
thick កំណត់កម្ពស់ខាងក្រោមនៃខ្សែក្រោមខ្វះខាត។
length អនុញ្ញាតអោយអ្នកអនុវត្តន៍កម្ពស់ខាងក្រោមនៃខ្សែក្រោម។
inherit ត្រូវការអនុវត្តន៍កម្ពស់ខាងក្រោមពីសាកល្បងមេ។

ឧទាហរណ៍ផ្សេងៗ

កំណត់កម្ពស់ខាងក្រោមនៃខ្សែក្រោម
ឧទាហរណ៍នេះបង្ហាញរបៀបកំណត់កម្ពស់ខាងក្រោមនៃខ្សែក្រោម។

ពត៌មានបច្ចេកទេស

តម្លៃការដំណើរការរដ្ឋាភិបាល: medium
ការអនុវត្តន៍ទៅលើសាកល្បង: no
កំណែនឹង: CSS1
JavaScript ហ្គ្រាម: object.style.borderBottomWidth="thick"

ការគាំទ្រម៉ាស៊ីនត្រលប់

ចំនុចលេខនៅក្នុងតារាងបង្ហាញទៅលើការគាំទ្រពេញលេញនៃលក្ខណៈបញ្ហានេះនៅក្នុងការប្រើប្រាស់ម៉ាស៊ីនត្រលប់ដំបូង។

Chrome IE / Edge Firefox Safari Opera
1.0 4.0 1.0 1.0 3.5

ការកត់សម្គាល់:IE7 និងការប្រើប្រាស់ម៉ាស៊ីនត្រលប់កាលពីមុនមិនគាំទ្រតម្លៃ "inherit" ទេ។IE8 ត្រូវការ !DOCTYPE។IE9 គាំទ្រ "inherit"។