【问题标题】:Bottom page Privacy banner is jumping underneath page bottom on Android底部页面隐私横幅在 Android 上跳到页面底部下方
【发布时间】:2020-03-20 09:27:49
【问题描述】:

我能问一下为什么我的 div 底部为:0;正在跳到底部:-5;在安卓设备上。见下图:

横幅问题:

.alert {
  padding: 20px;
  background-color:#0c4105;
  color: white;
  position: fixed; 
  bottom: 0;
  left: 0;
   width:100%;
}

@media only screen and (max-width: 800px) {
  .alert {
  width:100%;
  bottom: 0.11111px;
}
}

.conbtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.conbtn:hover {
  color: black;
}

【问题讨论】:

    标签: android html css mobile banner


    【解决方案1】:

    已通过在视口中添加最小和最大比例来解决此问题。

    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0">
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-24
      • 1970-01-01
      • 2017-12-05
      • 1970-01-01
      • 2020-10-09
      • 1970-01-01
      • 1970-01-01
      • 2020-05-03
      相关资源
      最近更新 更多