摘要:
很老的问题了,如今再次碰到,记录下来,给后来者方便!众所周知,在Firefox下input type=”button”的文字是不好居中的,原因在于Firefox自己比较二,弄了个私有属性,导致以下问题的出现:按钮左右本身有2px的间距(FF私有属性写了padding:0 2px所致);按钮文字居中是... 阅读全文
摘要:
在实际应用中,考虑到seo,很多button,icon都要用到inline-block和text-indent来处理,例如:Buttoncss我习惯写成这样.btn{display:inline-block; width:100px; height:23px; text-indent:-9999px... 阅读全文