【问题标题】:Unwanted border in :before/:after pseudo-elements:before/:after 伪元素中不需要的边框
【发布时间】:2015-06-03 06:59:31
【问题描述】:

以下代码在桌面浏览器上运行良好。但是在android webview中应用时,似乎有一个额外的边框。关于我应该如何处理这个问题的任何想法?

.container{
          width: 100px;
          height: 50px;
          background-color: #fff;
          color: #000;
          padding: 5px;
          position: relative;
       }
.container:before{
          content: "";
          border-left: 20px solid transparent;
          border-bottom: 50px solid #fff;
          position: absolute;
          left: -20px;
          top: 0;
       }

【问题讨论】:

    标签: css android-webview pseudo-element border-color


    【解决方案1】:

    尝试添加 right:100% 而不是 left: -20px 或仅比实际的 left: -19px; 少 1

    【讨论】:

      猜你喜欢
      • 2013-06-08
      • 2016-05-24
      • 1970-01-01
      • 2015-09-12
      • 1970-01-01
      • 2020-09-20
      • 1970-01-01
      • 1970-01-01
      • 2011-04-02
      相关资源
      最近更新 更多