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.
关于这个主题有很多信息,但我没有看到任何解决方案。我有这个 jsFiddle。
我希望外部 div 遵循内容的大小。内部 div 应该被向上推,以便图像和文本都从顶部边缘开始。我不能说哪个是最高的元素。
我该如何解决?
您必须垂直对齐图像容器和文本容器才能使其正常工作。这是一个例子:http: //jsfiddle.net/GSQqL/