简体   繁体   中英

How to set the right div as height as the left img

So I have a image one the left side and a paragraph on the right side.

The paragraph is not as height as the image on the left side,but I want to set the height of the paragraph according to the image.

How can I do that?

如果两个元素都在同一个容器中,则设置高度:段落的100%

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM