Can we solve the table row background image problem, in chrome, in multi celled tables?

后端 未结 3 1081
一整个雨季
一整个雨季 2020-12-09 15:09

It is frequently asked – but I haven’t seen a good answer yet (and I looked). If you set a background image in CSS to a table row- the image will repeat itself in every cell

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-09 16:11

    Tested in Chrome 54 on Windows 10:

    tr {
      background-attachment: fixed;
    }
    

    Though it seems it's not without bugs - the background image only repeats throughout the viewport at loadtime, which means that the cells that appear when you scroll down doesn't have the background.

提交回复
热议问题