父级元素如果有transform属性,会导致子元素的fixed失效。暂时没有找到解决方法。。
貌似见到过这种问题。
既然做的移动端,就不要用position: fixed。可以用absolute实现fixed的效果,至于怎么做,网上应该有很多。
position: fixed
不知道你说的
header fixed 在顶部
指的是不是 position: fixed?建议用 position: absolute, 有什么问题,可以看看我写的栗子:khApp
position: absolute