CSS 3 中删除了“position”属性吗?

发布于 2024-12-02 02:22:47 字数 846 浏览 0 评论 0原文

在最新版本中 CSS 属性 position 没有“自动完成”后,我联系了市长 IDE 的支持人员。他们说 CSS 3 中不存在。我做了一些挖掘,并回复了

“CSS Level 3 逐个模块地构建在 CSS Level 2 的基础上,使用 CSS2.1 规范为其核心。每个模块添加功能和/或 取代 CSS2.1 规范的一部分。” http://www.w3.org/TR/2011/注意-css-2010-20110512/#css3

此外,这定义了位置属性,尽管它不是 完成: http://www.w3.org/Style/CSS/specs#positioning

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

[..] CSS3中确实有很多属性是1:1复制的 CSS2.1。在 CSS3 引入的新属性中,您可以发现许多 CSS 2.1 CSS3草案中的定义。不幸的是,情况并非如此 位置和一些其他属性 [..]

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

I contacted the support of a mayor IDE, after the CSS property position didn't "auto-complete" in the latest version. They said it doesn't exist in CSS 3. I did some digging, and replied

"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

But they stood their ground. This is a reply from them, after a length debate.

[..] 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 [..]

I have no grudge towards them, but am curious. Does position really not exist in CSS 3?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

最单纯的乌龟 2024-12-09 02:22:47

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

我通过 CSS3 级别的验证器运行了这个,一切都很好

.jason{
    position:absolute;
}

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

While it may not exist in the new Spec (which is TBD), it remains valid.

I ran this through the validator at CSS3 level and it was all good

.jason{
    position:absolute;
}

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

御弟哥哥 2024-12-09 02:22:47

我不这么认为。请参阅 Chris Hanscom 编写的这份快速参考指南。您可以在第二页右侧栏的底部找到定位规范

http: //www.veign.com/downloads/guides/qrg0008.pdf

I don't think so. Look at this Quick Reference Guide compiled by Chris Hanscom. You'll find the positioning spec at the bottom of the right hand column on the second page

http://www.veign.com/downloads/guides/qrg0008.pdf

呢古 2024-12-09 02:22:47

虽然从去年开始,css3状态的快照就包含了position poperty。如前所述,它与 css 2.1 中众所周知的位置相同。据我所知,css3 并没有“禁止”以前版本中引入的任何内容。

http://www.w3.org/TR/css-2010/#properties(向下滚动到表格)

Although from last year, the snapshot of css3 state contains position poperty. As stated before, it is the same well know position that in css 2.1. As far as I know css3 doesn't "forbid" anything introduced in previous versions.

http://www.w3.org/TR/css-2010/#properties (scroll down to table)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文