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

最小直列大小 | min-inline-size

最小内联尺寸

这是一种实验技术

由于此技术%27s规范尚未稳定,请检查兼容性表在各种浏览器中使用。还要注意的是,随着规范的改变,实验技术的语法和行为可能会在未来版本的浏览器中发生变化。

min-inline-sizeCSS属性定义元素%27s块的水平或垂直最小大小,具体取决于其写入模式。它对应于min-width或者min-height属性,取决于writing-mode...

/* <length> values */ min-inline-size: 100px; min-inline-size: 5em; /* <percentage> values */ min-inline-size: 10%; /* Keyword values */ min-inline-size: max-content; min-inline-size: min-content; min-inline-size: fit-content; min-inline-size: fill-available; /* Global values */ min-inline-size: inherit; min-inline-size: initial; min-inline-size: unset;

如果写作模式是垂直定向的,则min-inline-size与元素的最小高度有关;否则,它涉及元素的最小宽度。相关财产是min-block-size,它定义元素的其他维度。

Initial value0
Applies tosame as width and height
Inheritedno
Percentagesinline-size of containing block
Mediavisual
Computed valuesame as min-width and min-height
Animation typediscrete
Canonical orderthe unique non-ambiguous order defined by the formal grammar

句法

价值

min-inline-size属性的值与min-widthmin-height财产。

形式语法

<'min-width'>

HTML

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

CSS

.exampleText { writing-mode: vertical-rl; background-color: yellow; block-size: 5%; min-inline-size: 200px; }

规格

SpecificationStatusComment
CSS Logical Properties Level 1The definition of 'min-inline-size' 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