[英]Dynamic div append on iPhone
在我制作的iPhone网站上,iPhone似乎无法处理动态高度的内容。 在页脚之前的div中添加的内容不会降低页脚div。 然后,页脚和新内容最终彼此“重叠”,而来自动态div的内容仅显示为其溢出。
有任何解决这个问题的方法吗..? (无法在Chromes iPhone模拟器中重新使用它)
编辑,这是附加的代码:
$("#wrapper").empty();
$.each(full_playlist, function(j, current_song){
if(!current_song.now_playing){ //check that the song isnt playing
$("#wrapper").append(List.generateSong(current_song, false, true));
}
});
编辑,页脚和包装的CSS:
footer{
margin-top:0px !important;
}
#wrapper {
height: 100%;
width: 113%;
overflow: auto;
padding-right: 5vh;
opacity: 1;
}
增加高度:自动; 解决了这个问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.