将文本压入div?

I have a <div> which has width:auto and two <img> elements with height: 30% and 'width:auto.' This is great, because the div fits the contents.

However, when I add a line of text (<p>) between them, the text grows as big as possible instead of wrapping into multiple lines.

如何使文本不大于图像,以使div不会扩展得太远(请不要使用flex)?

评论