CSS border-inline-start egenskab
- Forrige side border-inline-end-width
- Næste side border-inline-start-color
Definition og brug
border-inline-start
ejenskaben er en forkortelse for følgende ejenskaber:
CSS border-inline-start
ejenskaben er en forkortelse for CSS-ejenskaben border-bottom
、border-left
、border-right
and border-top
meget ligner, men border-inline-start
ejenskaben afhænger af indrykning.
Bemærk:relaterede CSS-ejenskaber writing-mode
、tekst-retning
and direction
Defines the inline direction. This affects the start and end positions of a line, as well as border-inline-start
The result of the attribute. For English pages, the inline direction is from left to right, and the block direction is from top to bottom.
Instance
Example 1
Set the border width, color, and style at the start of the inline direction:
div { border-inline-start: 10px solid pink; }
Example 2: Combined with the writing-mode attribute
The position of the border at the start of the inline direction is affected by writing-mode
Attribute impact:
div { writing-mode: vertical-rl; border-inline-start: 5px solid blue; }
Example 3: Combined with the direction attribute
The position of the border at the start of the inline direction is affected by direction
Attribute impact:
div { direction: rtl; border-inline-start: 5px solid hotpink; }
CSS syntax
border-inline-start: border-inline-start-width border-inline-start-style border-inline-start-color|initial|inherit;
Attribute value
Value | Description |
---|---|
border-inline-start-width |
Specifies the border width at the start of the inline direction for the element. The default value is medium. |
border-inline-start-style |
Specifies the border style at the start of the inline direction for the element. The default value is none. |
border-inline-start-color |
Specifies the border color at the start of the inline direction for the element. The default value is the current border color. |
initial | Sets this property to its default value. See initial. |
inherit | Inherits this property from its parent element. See inherit. |
Technical details
Default value: | medium none currentcolor |
---|---|
Inheritance: | No |
Animation creation: | Supported. See:Animation-related properties. |
Version: | CSS3 |
JavaScript syntax: | object.style.borderInlineStart="pink dotted 5px" |
Browser support
The numbers in the table represent the first browser version to fully support this property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
69.0 | 79.0 | 41.0 | 12.1 | 56.0 |
Related pages
Tutorial:CSS kant
Reference:CSS border egenskab
Reference:CSS border-inline egenskab
Reference:CSS border-inline-end-style egenskab
Reference:CSS border-inline-start-farve egenskab
Reference:CSS border-bottom-color egenskab
Reference:CSS border-left-farve egenskab
Reference:CSS border-right-farve egenskab
Reference:CSS border-top-farve egenskab
Reference:CSS direction egenskab
Reference:CSS text-orientation egenskab
Reference:CSS writing-mode egenskab
- Forrige side border-inline-end-width
- Næste side border-inline-start-color