WebKit vs Mozilla vertical alignment of font glyphs in box

前端 未结 2 1935
慢半拍i
慢半拍i 2021-02-13 10:18

\"Glyphs

This test image shows how wildly different Safari positions text inside a box vs Firefox (Safari

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-13 10:52

    Have you tried using the Reset at the top of your stylesheet file??

    The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on.

    You can find the explanation & the code here: http://meyerweb.com/eric/tools/css/reset/

    I hope this would help you!

提交回复
热议问题