位置 relative/absolute 并提供绝对坐标的最近祖先元素的名称
Name of nearest ancestor element that is position relative/absolute and provides absolute coords
我花了一段时间研究 post 哪个 SE 网站,但 none 似乎比 SO 更合适。
我正在尝试在 HTML 中记录一些关于坐标系的内容,如果已经存在,我不想发明一个新术语。
关于绝对定位:
By default, the container is the browser window, but if a parent element either has position: relative or position: absolute set on it, then it will act as the parent for positioning coordinates for its children.
这个 "positioning parent" 有一个更时髦的官方(大概)名字吗?
您可能要查找的字词是 "containing block"。它在 section 10.1 of CSS2 and section 3.1 of css-position 中有描述。但是请注意,包含块的面积不一定与用作包含块的元素的填充框的面积相同。上述规格都有所有细节。
我花了一段时间研究 post 哪个 SE 网站,但 none 似乎比 SO 更合适。
我正在尝试在 HTML 中记录一些关于坐标系的内容,如果已经存在,我不想发明一个新术语。
关于绝对定位:
By default, the container is the browser window, but if a parent element either has position: relative or position: absolute set on it, then it will act as the parent for positioning coordinates for its children.
这个 "positioning parent" 有一个更时髦的官方(大概)名字吗?
您可能要查找的字词是 "containing block"。它在 section 10.1 of CSS2 and section 3.1 of css-position 中有描述。但是请注意,包含块的面积不一定与用作包含块的元素的填充框的面积相同。上述规格都有所有细节。