td { position:relative; } overflows into the table border

后端 未结 4 1267
梦谈多话
梦谈多话 2020-12-10 00:51

http://jsfiddle.net/L83y3/

HTML

stuff more stuff
4条回答
  •  心在旅途
    2020-12-10 01:47

    Background clipping just did the trick. Just apply "background-clip: padding-box;" on the th and it works.

    according to the docs: https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip.

    "No background is drawn below the border (background extends to the outside edge of the padding)."

提交回复
热议问题