Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么在创建一个以图像为要点的简单列表时,每个条目至少需要三个元素?或者有什么方法可以在没有容器 div 的情况下在新行中获取条目并且仍然让所有内容正确对齐?或许这需要深入分析仓位属性和浮动。
所以像:
[div] [img] [inner div] [/div]
对比:
[img] [inner div]
你的假设实际上是不正确的。
pseudo elements
看看这个小提琴