difference between Firefox and Chrome padding

后端 未结 6 487
野趣味
野趣味 2021-02-05 04:56

there is a difference in how firefox and chrome render the padding in css. what appears correct in chrome is extra padded in firefox. is there a way to solve?

.b         


        
6条回答
  •  抹茶落季
    2021-02-05 05:23

    u can set a different padding for firefox

    .button {
       padding:0;
    }
    
    @-moz-document url-prefix() {
        .button {
           padding:10px;
        }
    }
    

提交回复
热议问题