收藏
回答

安卓border-width设置为0仍然有很细的边框

框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小程序 Bug Android Android 8.0.0 华为 荣耀6x 7.0.4.1420

- 当前 Bug 的表现(可附上截图)

使用了box-sizing:border-box; 设置了左边框为0,或者为none,依然有一条很细的边框。


- 预期表现


- 复现路径


- 提供一个最简复现 Demo

<view class="box">
<view wx:for="{{4}}" class="border">
  <view class="item"></view>
</view>
</view>
.box{
  padding:20px 0;
  display: flex;
  justify-content: center;
  background-color: pink;
}
.border{
  
  border-left:1px solid #eee;
  border-top:1px solid #eee;
  box-sizing: border-box;
}
 
.border:nth-of-type(3){
  border-left:none;
  /* border-left-width:0; */
}
 
.item{
  width:60px;
  height:60px;
  background-color: #ff6919;
}


回答关注问题邀请回答
收藏

1 个回答

  • 大胖余
    大胖余
    2019-04-18

    没有问题啊  第三个border容器的左边框没有了啊

    2019-04-18
    有用
    回复 4
    • 2019-04-18

      看我的截图,有一条很细的线

      2019-04-18
      回复
    • 大胖余
      大胖余
      2019-04-18回复

      哇哦  看到了  我这边用的别的手机  是没有的

      2019-04-18
      回复
    • 2019-04-18回复大胖余

      安卓好几个手机都有,ios没有,模拟器没有

      2019-04-18
      回复
    • SmalLツ鑫
      SmalLツ鑫
      2019-12-18回复
      您好,我现在在安卓上也有这个问题,您是怎么解决的
      2019-12-18
      回复
登录 后发表内容