参考网站:
http://jsfiddle.net/kkh975/SCJ9J/1/
<div id="test1">
box contents
<div id="test2">
fix contents
</div>
</div>
html, body {
height: 100%;
}
#test1 {
width: 100%;
height: 100%;
border: 1px solid blue;
background: #bbb;
}
#test2 {
position: fixed;
bottom: 0px;
left: 0px;
width: 100%;
height: 100px;
border: 1px solid red;
background: #ddd;
}
我发现无法仅在LG手机(即LG G2)上固定的位置工作,而其他设备运行良好。我可以解决这个问题吗?
最佳答案
添加“ -webkit-backface-visibility:隐藏;”到位置:固定。
帮助该网站:http://codepen.io/benfrain/full/wckpb
关于css - LG移动设备修复了CSS3错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20967879/