Top-align text within button element?

后端 未结 3 986
野的像风
野的像风 2020-12-07 02:29

I have some buttons that have varying numbers of lines of text, all with a fixed width and height. It seems that anything I put between the

3条回答
  •  遥遥无期
    2020-12-07 02:51

    Like PlantTheIdea's answer, this one adds a , but is simpler and works across browsers.

    .test > span {
        display: block;
        height: 100%;
    }
    

提交回复
热议问题