我想使用里面的滚动图像覆盖iPhone展示移动网站设计,但图像不滚动覆盖的iPhone顶部有我做错了什么,以及如何我是否修复它?内部滚动图像的iPhone剪影
DEMO:http://jsfiddle.net/jonathanl5660/Lao36z20/
<div>
<img src="https://dl.dropboxusercontent.com/u/9833562/iphone.png" width="370px" height="800px" style="position: absolute; ">
</div>
<div style="width:300px;height:700px;overflow:scroll;margin:30px; position: relitive;">
<img src="https://dl.dropboxusercontent.com/u/9833562/mtest.png" width="98%" height="700px" alt="" style="margin-top:150px;margin-left:10px;" /><br />
<br />
</div>
我试图编辑您的例子,但像缝的jsfiddle不在我的机器上工作得很好... 无论如何,iphone应该有一个相对位置,并且z-index:-1(以便上面的图像完全可用)和上面的图像应该有位置绝对与明智的利润相关的父母(iphone) – Nick 2014-09-22 13:06:21