CSS border-right-width 属性

Definition and usage

The border-right-width attribute sets the width of the element's right border.

It works only when the border style is not none. If the border style is none, the actual border width will be reset to 0. Negative length values are not allowed.

ការកត់សម្គាល់:Always declare the border-style attribute before the border-right-width attribute. The element must be obtained the border before it can change the width of its border.

see also:

CSS tutorial:CSS 边框

CSS reference manual:border-right attribute

HTML DOM reference manual:borderRightWidth attribute

example

set border-right width:

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

try it yourself

CSS ហ្គ្រាមសាស្រ្ត

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

attribute value

value description
thin define thin border
medium តម្លៃបញ្ហាសាកល。កំណត់បន្ទាត់ស្លាបខាងស្តាំជាបន្ទាត់មធ្យម
thick កំណត់បន្ទាត់ស្លាបខាងស្តាំជាបន្ទាត់ស្តែង
length អនុញ្ញាតអោយអ្នកកំណត់ទំហំបន្ទាត់ស្លាបខាងស្តាំ
inherit កំណត់ថាត្រូវការទទួលយកទំហំបន្ទាត់ពីសញ្ញាកំណត់ពីអត្ដបន្ទប់មុខ

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

តម្លៃបញ្ហាសាកល medium
ការទទួលទៅលើ no
កំណត់ថ្ងៃនៅក្នុង CSS1
JavaScript ហ្គ្រាមសាស្រ្ត: object.style.borderRightWidth="thick"

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

កំណត់ទំហំបន្ទាត់ស្លាបខាងស្តាំ
ឧទាហរណ៍នេះបង្ហាញរបៀបកំណត់ទំហំបន្ទាត់ស្លាបខាងស្តាំ。

ការគាំទ្រនៃកម្មវិធីអ៊ីនធឺណេត

ចំនុចលេខនៅក្នុងតារាង បញ្ជាក់ថាតម្រូវការគាំទ្រពាក្យផ្លូវការនៃតម្លៃនេះ គឺជាកំឡុងពេលប្រើប្រាស់ដំបូងនៃកម្មវិធីរបស់ក្រុមហ៊ុនប្រើប្រាស់កុំព្យូទ័រ

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

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