border-inline-start-color CSS property defines the color of the logical inline start border of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-color , border-right-color , border-bottom-color ,或 border-left-color property depending on the values defined for writing-mode , direction ,和 text-orientation .

The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.

句法

border-inline-start-color: red;
border-inline-start-color: #ee4141;
					

Related properties are border-block-start-color , border-block-end-color ,和 border-inline-end-color , which define the other border colors of the element.

<'color'>
The color of the border. See color .

形式定义

初始值 currentcolor
适用于 所有元素
继承 no
计算值 computed color
动画类型 a color

形式句法

<'border-top-color'>
					

范例

HTML

<div>
  <p class="exampleText">Example text</p>
</div>
					

CSS

div {
  background-color: yellow;
  width: 120px;
  height: 120px;
}
.exampleText {
  writing-mode: vertical-lr;
  border: 10px solid blue;
  border-inline-start-color: red;
}
					

规范

规范 状态 注释
CSS Logical Properties and Values Level 1
The definition of 'border-inline-start-color' in that specification.
编者草案 初始定义

浏览器兼容性

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
border-inline-start-color Chrome 完整支持 69 Edge 完整支持 79 Firefox 完整支持 41
完整支持 41
完整支持 38 注意事项 Disabled
注意事项 Enabled by default since Firefox 41.
Disabled From version 38: this feature is behind the layout.css.vertical-text.enabled preference (needs to be set to true ). To change preferences in Firefox, visit about:config.
完整支持 3 Alternate Name
Alternate Name Uses the non-standard name: -moz-border-start-color
IE 不支持 No Opera 完整支持 56 Safari 完整支持 12.1 WebView Android 完整支持 69 Chrome Android 完整支持 69 Firefox Android 完整支持 41
完整支持 41
完整支持 38 注意事项 Disabled
注意事项 Enabled by default since Firefox 41.
Disabled From version 38: this feature is behind the layout.css.vertical-text.enabled preference (needs to be set to true ). To change preferences in Firefox, visit about:config.
完整支持 4 Alternate Name
Alternate Name Uses the non-standard name: -moz-border-start-color
Opera Android 完整支持 48 Safari iOS 完整支持 12.2 Samsung Internet Android 完整支持 10.0

图例

完整支持

完整支持

不支持

不支持

见实现注意事项。

见实现注意事项。

用户必须明确启用此特征。

用户必须明确启用此特征。

使用非标名称。

使用非标名称。

另请参阅

元数据

  • 最后修改: