Vertical align checkbox / label pairs

This question already has an answer here:

  • How to align checkboxes and their labels consistently cross-browsers 36 answers

  • No idea why the browsers do different things, they just always do. As far as this, did you try display:table-cell; ?


    another solution:

    .checkbox{
    vertical-align:-3px;
    }
    

    note: it's simple. But not always works fine if the font-size of label is too big.


    也许在<input>上的默认margin / padding正在搞砸了吗?

    链接地址: http://www.djcxy.com/p/7142.html

    上一篇: 如何垂直居中在一个div内的可变高度的内容?

    下一篇: 垂直对齐复选框/标签对