当我element (position : absolute)
在运行时动态附加
content part (data-role=content)
JqueryMobile Page ,footer
不会根据高度来设置
新添加的元素。谁能告诉我为什么会这样?
当我element (position : absolute)
在运行时动态附加
content part (data-role=content)
JqueryMobile Page ,footer
不会根据高度来设置
新添加的元素。谁能告诉我为什么会这样?
这可能是多种原因,如果不查看您的代码就无法告诉您太多。
例如,您有最新的 JQuery 移动版吗?
现在我的猜测是你没有做任何事情来让页脚知道已经动态添加了一个新元素。在我自己的实现中,最新版本的 JQuery mobile 解决了这个问题,但是看看其他解决方案,例如:如何保持 jquery mobile 页眉和页脚固定?
在这里,iScroll 被用作一个合理的解决方案。您还可以查看:jQuery 移动收费栏的滚动视图 *not* to be fixed