


Regarding the issue of repeated display of background images inserted into HTML tables_html/css_WEB-ITnose
Let’s start with a piece of problematic code (actually, it can’t be said to be problematic, after all, there is no problem with the syntax, but the effect is not what we want?? We assume that the expected effect is that the background image only Fill it once instead of multiple times)
<span style="font-size:18px;"><html><head> <title>设定表格的背景图像</title></head><body> <table border=3 width=400 height=100 bordercolor=#336699 background="test.png"> <tr> <td>姓名</td> <td>张三</td> </tr> <tr> <td>性别</td> <td>男</td> </tr> <tr> <td>年龄</td> <td>20</td> </tr> </table></body></html></span>
The page effect is:
Let’s modify it slightly