CSS 属性 border-inline-start-style 定义了元素的逻辑行首的边框线型,并根据元素的书写模式、行内方向和文本朝向对应至实体边框线型。根据 {{CSSXref("writing-mode")}}、{{CSSXref("direction")}} 和 {{CSSXref("text-orientation")}} 所定义的值,此属性对应于 {{CSSXref("border-top-style")}}、{{CSSXref("border-right-style")}}、{{CSSXref("border-bottom-style")}} 或 {{CSSXref("border-left-style")}} 属性。

{{InteractiveExample("CSS Demo: border-inline-start-style")}}

```css interactive-example-choice border-inline-start-style: dotted; writing-mode: horizontal-tb;


```css interactive-example-choice border-inline-start-style: dotted; writing-mode: vertical-rl;

```css interactive-example-choice border-inline-start-style: groove; writing-mode: horizontal-tb; direction: rtl;


```html interactive-example <section class="default-example" id="default-example"> <div class="transition-all" id="example-element"> This is a box with a border around it. </div> </section>

```css interactive-example

example-element {

background-color: #eee; color: #000; border: 0.75em solid; padding: 0.75em; width: 80%; height: 100px; unicode-bidi: bidi-override; }


## 语法 ```css /* 边框线型值 */ border-inline-start-style: dashed; border-inline-start-style: dotted; border-inline-start-style: groove; /* 全局值 */ border-inline-start-style: inherit; border-inline-start-style: initial; border-inline-start-style: revert; border-inline-start-style: revert-layer; border-inline-start-style: unset;

与此相关的属性有 {{CSSXref("border-block-start-style")}}、{{CSSXref("border-block-end-style")}} 和 {{CSSXref("border-inline-end-style")}},这些属性定义了元素其他边框的线型。

{{CSSInfo}}

取值

  • <'border-style'>
    • : 边框线型。见 {{CSSXref("border-style")}}。

形式定义

{{CSSInfo}}

形式语法

{{CSSSyntax}}

示例

HTML

<div>
  <p class="exampleText">示例文本</p>
</div>

CSS

div {
  background-color: yellow;
  width: 120px;
  height: 120px;
}

.exampleText {
  writing-mode: vertical-lr;
  border: 5px solid blue;
  border-inline-start-style: dashed;
}

{{EmbedLiveSample("示例", 140, 140)}}