前言
当页面中有input
、textarea
时
底部提交按钮position:fiexd;
悬浮时
在滑动页面,input
、textarea
文本框中的文字
,placeholder
会穿透到提交按钮上方,设置z-index
在真机上无效。
解决方法
后经查阅用cover-view
代替view
,并设置z-index:999,问题解决。
注意: 可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher,只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。组