zoukankan      html  css  js  c++  java
  • 解决Firefox下input button内文字垂直居中

    在Firefox下input type=”button”的文字是不好居中的,原因在于Firefox的私有属性,导致以下问题的出现:

    1. 按钮左右本身有2px的间距(FF私有属性写了padding:0 2px所致);
    2. 按钮文字居中是不行的(此时设置padding-bottom是没用的) ;
    3. 等等…

    解决办法:

    
    
    input[type="reset"]::-moz-focus-innerinput[type="button"]::-moz-focus-inner,input[type="submit"]::-moz-focus-innerinput[type="file"] > input[type="button"]::-moz-focus-innerborder:none;padding:0; }
     
     
  • 相关阅读:
    2018.11.12
    2018.11.8
    2018.11.7
    2018.11.6
    2018.11.5
    学习python课程第七天
    作业四.
    学习python课程第六天
    作业3
    学习python课程第五天
  • 原文地址:https://www.cnblogs.com/seamar/p/2728711.html
Copyright © 2011-2022 走看看