difference between Firefox and Chrome padding

后端 未结 6 490
野趣味
野趣味 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:24

    The way that worked for me was to set the height of the object so that firefox, chrome and opera render it the same way, and remove all padding.

    .footertext6{
        float: left;
        padding-top:10px;
        width: 160px;
        height:102px; */setting height here*/
        background-color:#ffffff;
        opacity:0.6;
        filter:alpha(opacity=60); /* For IE8 and earlier */
        font-family: "Trebuchet MS", Helvetica, sans-serif;
        font-size: 15px;
        border-top-right-radius: 50px;    
    }
    

提交回复
热议问题