CSS 3 中删除了“position”属性吗?
在最新版本中 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/#css3Additionally, 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
虽然它可能不存在于新规范(待定)中,但它仍然有效。
我通过 CSS3 级别的验证器运行了这个,一切都很好
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
http://jigsaw.w3.org/css-validator/#validate_by_input+with_options
我不这么认为。请参阅 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
虽然从去年开始,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 knowposition
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)