三生石@ 2008-12-08 21:49 采纳率: 50%
浏览 175

表中两行之间的空间?

Is this possible via CSS?

I'm trying

tr.classname {
  border-spacing: 5em;
}

to no avail. Maybe I'm doing something wrong?

转载于:https://stackoverflow.com/questions/351058/space-between-two-rows-in-a-table

  • 写回答

23条回答 默认 最新

  • ~Onlooker 2008-12-08 21:52
    关注

    In the parent table, try setting

    border-collapse:separate; 
    border-spacing:5em;
    

    Plus a border declaration, and see if this achieves your desired effect. Beware, though, that IE doesn't support the "separated borders" model.

    评论

报告相同问题?