If I have a div with two sub div's within: is it possible to have height:auto; on the parent element but only apply it to one child element, and have the other set to overflow-y:scroll;?
Here is an examlpe: http://jsbin.com/equpor/2/edit
This is what I mean: can I make div.one adept it's height to div.two but ignore div.three?
Is there any proper way to solve this?
Edit: The content in div.three is generated by a php foreach loop from an xml file, so I want to be able to edit the xml without editing the html/css every time. So I don't know how long div.three will be. I want it to be dynamic.
以上就是Is there a way to make a div's height depend on one sub div's content but not another?的详细内容，更多请关注web前端其它相关文章！