Skip to content

Instantly share code, notes, and snippets.

@yangjunjun
Created October 31, 2013 10:12
Show Gist options
  • Save yangjunjun/7247310 to your computer and use it in GitHub Desktop.
Save yangjunjun/7247310 to your computer and use it in GitHub Desktop.
解决Firefox下input button内文字垂直居中,原因是Firefox的私有属性。来源:http://www.daqianduan.com/firefox-input-button/
input[type="reset"]::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner,
input[type="file"] > input[type="button"]::-moz-focus-inner{
border:none;padding:0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment