set table row height

前端 未结 1 447
星月不相逢
星月不相逢 2021-01-18 01:12

My lacking skills of CSS is giving me a headache. As presented in this picture below, captured from firebug:

\"e

相关标签:
1条回答
  • 2021-01-18 01:46

    Always set your height to cells, not rows.

    .v-table-table th,
    .v-table-table td{
        height: 55px;
        /* min-height: 55px; EDITED */
    }
    

    will do (min-height alone doesn't work).

    Edit: As djsadinoff wrote, min-height doesn't work everywhere. IE8 and IE9 interpret min-height but it is not the norm for other browsers.

    0 讨论(0)
提交回复
热议问题