在线文档教程
CSS
逻辑属性 | Logical Properties

边界直列开始宽度 | border-inline-start-width

border-inline-start-width

这是一种实验技术

由于该技术的规格不稳定,请查看各种浏览器的兼容性表格以供使用。还要注意,随着规范的变化,实验技术的语法和行为在未来版本的浏览器中可能会发生变化。

border-inline-start-width 映射到依赖于要素的写作模式,方向性和文本方向的物理边框宽度的逻辑直列启动边框的宽度。它对应于border-top-widthborder-right-widthborder-bottom-width,或border-left-width属性根据为定义的值writing-modedirectiontext-orientation

/* <'border-width'> values */ border-inline-start-width: 5px; border-inline-start-width: thick;

相关属性是border-block-start-widthborder-block-end-width,和border-inline-end-width,它定义元素的其他边框宽度。

初始值medium
应用于all elements
是否继承no
百分比logical-width of containing block
适用媒体visual
计算值absolute length; 0 if the border style is none or hidden
Animation typediscrete
规范顺序the unique non-ambiguous order defined by the formal grammar

句法

价值

<'border-width'>边框的宽度,详见border-width.

形式语法

<'border-width'>

HTML内容

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

CSS内容

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

规格

SpecificationStatusComment
CSS Logical Properties Level 1The definition of 'border-inline-start-width' in that specification.Editor's DraftInitial definition

浏览器兼容性

FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic supportNo support41.0 (41.0)1No supportNo supportNo support

FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic supportNo support41.0 (41.0)1No supportNo supportNo support