Why are my <div>s leaving their parent <div>?
This question already has an answer here:
Parents will normally expand to the height of their children, though won't in case the children are floated.
overflow: auto;
on .pictureBox. This will make .pictureBox expand to the height of its children. Here's a Fiddle showing the result. 上一篇: 颜色不起作用