Issue with applying dotted border to cells in table design

后端 未结 9 1058
不知归路
不知归路 2021-01-12 07:48

Here\'s my fiddle:

http://jsfiddle.net/gFA4p/84/

In this screenshot, the green lines represent where I\'m trying to apply dotted lines.

9条回答
  •  再見小時候
    2021-01-12 08:01

    The issue you're seeing is due to the rules of conflict resolution when it comes to border collapse. Solid takes precedence over dotted:

    http://lachy.id.au/dev/css/tests/bordercollapse/bordercollapse.html

    I believe you will need to make the conflicting borders dotted as well. So if you went a cell's left border to be dotted, you'll need to make the right border of the cell to its left also dotted (or anything of lower precedence, but dotted make the most sense).

提交回复
热议问题