Giter Club home page Giter Club logo

Comments (4)

rccoder avatar rccoder commented on August 28, 2024 1

1px 边框建议:

.J_HAD_COUPON {
    color: #A5A5A5;
    &::after {
      position: absolute;
      content: "";
      top: 0;
      left: 0;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      width: 100%;
      height: 100%;
      border-style: solid;
      border-width: 1px;
      border-color: #CCCCCC;
      pointer-events:none;
      -webkit-transform-origin: 0 0;
      transform-origin: 0 0;
      border-radius: 40px;
      -webkit-border-radius: 40px;
    }
    @media (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5), (min-resolution: 144dpi), (min-resolution: 1.5dppx) {
      &::after{
        width: 200%;
        height: 200%;
        -webkit-transform: scale(.5);
        transform: scale(.5);
      }
    }
    @media (-webkit-device-pixel-ratio: 1.5) {
      &::after {
        width: 150%;
        height: 150%;
        -webkit-transform: scale(.6666);
        transform: scale(.6666);
      }
    }
    @media (-webkit-device-pixel-ratio: 3) {
      &::after {
        width: 300%;
        height: 300%;
        -webkit-transform: scale(.3333);
        transform: scale(.3333);
      }
    }
  }

可以封装成相关的 sass、less 方法

from article.

wujunchuan avatar wujunchuan commented on August 28, 2024

我也遇到的相同的问题

from article.

YunyChan avatar YunyChan commented on August 28, 2024

1px不要用rem作为单位,直接写"1px"

from article.

qingmingsang avatar qingmingsang commented on August 28, 2024

安卓机型许多都不识别带小数的px,rem是否也有这个问题?

from article.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.