Is it possible to change inline text height, not just the line-height?

前端 未结 8 1858
面向向阳花
面向向阳花 2021-01-01 10:23

I am wondering if it\'s possible to change the height of inline text, without stretching the font, and without changing the line height in css.

An issue comes up whe

8条回答
  •  离开以前
    2021-01-01 10:38

    There is one property that hasn't been mentioned yet that can help change the height of a font...the only problem is it is has abysmal support.

    The property I refer to is the font-size-adjust CSS Property.

    MDN has this to say:

    The font-size-adjust CSS property specifies that font size should be chosen based on the height of lowercase letters rather than the height of capital letters. This is useful since the legibility of fonts, especially at small sizes, is determined more by the size of lowercase letters than by the size of capital letters.

    As I mentioned support is horrible. As of this post, Firefox is the only browser that supports it. As of v43 of Chrome it can be enabled under the experimental Web Platform features flag.

提交回复
热议问题