在线文档教程
CSS

沿着内联轴溢出初始包含块 | @media.overflow-inline

@media.overflow-inline

overflow-inline CSS @media媒体功能可基于所述输出设备如何处理溢出沿字形轴包含块的初始内容样式,来提供样式。

语法

overflow-inline功能被指定为从下面的列表中选择的关键字值。

none内联轴溢出的内容不显示。

例子

HTML

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam ac turpis eleifend, fringilla velit ac, aliquam tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nunc velit erat, tempus id rutrum sed, dapibus ut urna. Integer vehicula nibh a justo imperdiet rutrum. Nam faucibus pretium orci imperdiet sollicitudin. Nunc id facilisis dui. Proin elementum et massa et feugiat. Integer rutrum ullamcorper eleifend. Proin sit amet tincidunt risus. Sed nec augue congue eros accumsan tincidunt sed eget ex.</p>

CSS

@media (overflow-inline: scroll) {   p {   color: red;   } }

结果

规范

SpecificationStatusComment
Media Queries Level 4The definition of 'overflow-inline' in that specification.Working DraftInitial definition.

浏览器兼容性

FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support?????

FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support?????