gpt4 book ai didi

css - CSS 3 中是否删除了 `position` 属性?

转载 作者:行者123 更新时间:2023-11-28 09:40:35 27 4
gpt4 key购买 nike

在 CSS 属性 position 在最新版本中没有“自动完成”之后,我联系了一个主要 IDE 的支持。他们说它在 CSS 3 中不存在。我做了一些挖掘,然后回复了

"CSS Level 3 builds on CSS Level 2 module by module, using the CSS2.1 specification as its core. Each module adds functionality and/or replaces part of the CSS2.1 specification." http://www.w3.org/TR/2011/NOTE-css-2010-20110512/#css3

Additionally, this defines the position property, although it's not finished: http://www.w3.org/Style/CSS/specs#positioning

但他们坚持自己的立场。这是他们经过长时间辩论后的回复。

[..] there are indeed many properties in CSS3 which are copied 1:1 from CSS2.1. Among new properties introduced in CSS3, you can find many CSS 2.1 definitions in CSS3 draft. Unfortunately, it's not the case with position and some other properties [..]

我对他们没有怨恨,但很好奇。 position 真的不存在于 CSS 3 中吗?

最佳答案

虽然它可能不存在于新规范(待定)中,但它仍然有效。

我在 CSS3 级别通过验证器运行了它,一切都很好

.jason{
position:absolute;
}

http://jigsaw.w3.org/css-validator/#validate_by_input+with_options

关于css - CSS 3 中是否删除了 `position` 属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7258560/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com