CSS: Why is vertical-align: baseline stop working on Firefox when using overflow: hidden?

后端 未结 3 2090
野趣味
野趣味 2021-02-07 17:33

You can reproduce this by running this test case. The results are shown in the screenshot below. The issue is that on Firefox, when adding a overflow: hidden on the

3条回答
  •  眼角桃花
    2021-02-07 18:26

    try adding vertical-align: text-bottom; to .block

    you can also try to set equal line-heights for .label and .block

提交回复
热议问题