设置 background 后,直接看代码吧。
var sub = plus.webview.create(urlId, urlId, {
// top: 350 + 'px',
top: ($('.pui-header')[0].offsetHeight + lei_xing_qie_huan.offsetHeight) + 'px',
// height: (doc.body.offsetHeight - $('.pui-header')[0].offsetHeight - lei_xing_qie_huan.offsetHeight) + 'px',
bottom: 0,
**background**: '#f00'
}, {
tapFlag: tapFlag
});
如果不设置 background,下面列表的位置就显示正常了,请看图:
奇怪,background 占位置了?