[英]Placing div2 when the content is bigger than the size of div1
I try to render a page on mobile with responsive css. 我尝试使用响应式css在移动设备上呈现页面。 I can't change the html, and i try to resolve my problem only with css. 我无法更改html,我尝试仅使用css解决我的问题。
Imagine that i have a div like that : 想象一下,我有一个这样的div:
#example {
width : 25px;
height : 25px;
}
Inside this div, i have an 1024*768 image. 在这个div中,我有一个1024 * 768的图像。 So the content is bigger than the contener (and i will show all the content) My problem is that the following content will be placed at 25px of the top, not below the image. 所以内容比竞争对手大(我将显示所有内容)我的问题是以下内容将被放置在顶部的25px,而不是图像下方。
EDIT : a new jsfiddle, more precise : http://jsfiddle.net/eABu5/12/ 编辑:一个新的jsfiddle,更精确: http : //jsfiddle.net/eABu5/12/
Do you have any idea ? 你有什么主意吗 ? Many thanks 非常感谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.