css浮动位置未定义是啥意思?

最近在看css规范,在浮动这一章节有这一段不是很理解,求大神指教
But in CSS 2.1, if, within the block formatting context, there is an in-flow negative vertical margin such that the float's position is above the position it would be at were all such negative margins set to zero, the position of the float is undefined.
链接:https://www.w3.org/TR/CSS2/vi...

阅读 1.8k
2 个回答

可以先不用管。CSS3 都多少年了,2.1 的规范大概知道就行,不用深究。以后也不会用到 float 做横向布局,display:flex/grid 各方面都优秀得多。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题