What is the value of the css 'ex' unit?

后端 未结 5 880
时光说笑
时光说笑 2020-11-28 03:21

(Not to be confused with Xunit, a popular .Net unit testing library.)

Today in a fit of boredom I started inspecting Gmails DOM (yes, I was very bored).

Ever

5条回答
  •  时光取名叫无心
    2020-11-28 03:42

    To answer the question, one use is with superscript and subscript. Example:

    sup {
        font-size: 75%;
        height: 0;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
        bottom: 1ex;
    }
    

提交回复
热议问题