Using display flex on a button makes it wrap in Firefox

后端 未结 2 660
借酒劲吻你
借酒劲吻你 2021-01-19 01:59

For some reason using display Flex like this causes the items to wrap one ontop of eachother in Mozilla. Is there a reason for this? In Chrome it works fine and they are on

2条回答
  •  无人及你
    2021-01-19 02:32

    I would use more light weight method for buttons display:inline-block:

    button {
      height: 40px;
      padding: 0 10px;
      white-space: nowrap;}
      button * {
        display: inline-block;
        vertical-align: middle;}
      button svg {
        height: 15px;
        margin-right: 5px;}

提交回复
热议问题