Vertical alignment of empty inline-block elements

后端 未结 4 1742
情歌与酒
情歌与酒 2020-12-19 04:02

Consider the following html/css:



a


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-19 04:35

    Just in case still helps someone, another solution, enforcing to have some space from CSS:

      span:empty:before {
        content: "\0020";
        display: inline-block;
      }
    

提交回复
热议问题