zoukankan      html  css  js  c++  java
  • 去除移动端按钮点击时的阴影和rem标签垂直居中

    *{ -webkit-tap-highlight-color: rgba(0,0,0,0);-webkit-tap-highlight-color: transparent; /* For some Androids */ }  


    使用rem设置height和line-height相同时文字没有居中?

    pc上模拟器模拟出来的是垂直居中的没错,但是在实际手机中,苹果手机渲染出来是垂直居中的,安卓手机渲染出来就是会偏上一些,兼容的方法就是不要设置height,line-height设置为1,用padding值上下相等来保持垂直居中。

    .m-label{display: inline-block;margin: 0.09rem 0.07rem; padding: 0.155rem 0.23rem;line-height: 1px; font-size: 0.14rem;letter-spacing: 0;border-radius: 0.16rem;text-align: center;}



  • 相关阅读:
    UVa 1605
    UVa 120
    UVa 10384
    UVa 11694
    UVa 11846
    常用小函数
    【DP】:CF #319 (Div. 2) B. Modulo Sum
    类的无参方法
    类和对象
    七言
  • 原文地址:https://www.cnblogs.com/xutongbao/p/9924867.html
Copyright © 2011-2022 走看看