CSS参考手册
逻辑属性 | Logical Properties
偏移 - 嵌段 - 端 | offset-block-end
这是一种实验技术
由于该技术的规格不稳定,请查看各种浏览器的兼容性表格以供使用。还要注意,随着规范的变化,实验技术的语法和行为在未来版本的浏览器中可能会发生变化。
offset-block-end
CSS属性定义的逻辑块端部的元件,其映射到物理取决于元件的写入模式,方向性,和文本方向偏移偏移。它对应于top
,right
,bottom
,或left
属性根据为定义的值writing-mode
,direction
和text-orientation
。
/* <length> values */
offset-block-end: 3px;
offset-block-end: 2.4em;
/* <percentage>s of the width or height of the containing block */
offset-block-end: 10%;
/* Keyword value */
offset-block-end: auto;
/* Global values */
offset-block-end: inherit;
offset-block-end: initial;
offset-block-end: unset;
它与offset-block-start
,offset-inline-start
,和offset-inline-end
定义元素的其他偏移量。
初始值 |
auto |
---|---|
应用于 |
positioned elements |
是否继承 |
no |
百分比 |
logical-height of containing block |
适用媒体 |
visual |
计算值 |
same as box offsets: top, right, bottom, left properties except that directions are logical |
Animation type |
discrete |
规范顺序 |
the unique non-ambiguous order defined by the formal grammar |
句法
价值
offset-block-end
属性取值为left
形式语法
<'left'>
例
HTML内容
<div>
<p class="exampleText">Example text</p>
</div>
CSS内容
div {
background-color: yellow;
width: 120px;
height: 120px;
}
.exampleText {
writing-mode: vertical-rl;
position: relative;
offset-block-end: 20px;
background-color: #c8c800;
}
规格
Specification |
Status |
Comment |
---|---|---|
CSS Logical Properties Level 1The definition of 'offset-block-end' in that specification. |
Editor's Draft |
Initial definition |
浏览器兼容性
Feature |
Chrome |
Firefox (Gecko) |
Internet Explorer |
Opera |
Safari (WebKit) |
---|---|---|---|---|---|
Basic support |
No support |
41.0 (41.0)1 |
No support |
No support |
No support |
Feature |
Android |
Firefox Mobile (Gecko) |
IE Phone |
Opera Mobile |
Safari Mobile |
---|---|---|---|---|---|
Basic support |
No support |
41.0 (41.0)1 |
No support |
No support |
No support |
逻辑属性 | Logical Properties相关
层叠样式表( Cascading Style Sheets )是一种用来表现 HTML 或 XML 等文件样式的计算机语言。CSS 不仅可以静态地修饰网页,还可以配合各种脚本语言动态地对网页各元素进行格式化。