Bottom few pixels of text cut off

后端 未结 8 1772
暗喜
暗喜 2021-02-12 13:46

I really can\'t figure out what\'s going on in this case. On the multiline pieces of text, the bottom few pixels are cut off.

8条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-12 14:16

    As per specific Browsers this kind of issue is related to the Font Family, very often. My solution for text being cut off is to change the font family to sans-serif and see if this has any effect. This worked infallibly on any browser I tried it in.

    As from what the other threads above are stating... it just might help to adjust line-height and padding, sometimes, but for me, none of these worked in general:

    max-width: 100%;
    min-height: 1.62em;
    padding: 2px 5px 2px 5px;    
    vertical-align: initial;
    

    font-family: initial, sans-serif, serif; is a good starting point and then you can find a font that plays nice with your theme/site.

提交回复
热议问题