Closed. This question is off-topic。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
                        
                        5年前关闭。
                                                                                            
                
        
我有在那里有三个tds的html表,我需要在tr中为属性td添加一个图像,其属性为repeat-x;属性。但是它对我不起作用。
    我的代码:

     <td style="background-image:url('repeatbanner.png');background-repeat: repeat-x;">


我也尝试过width:auto,但是没有结果。请尝试帮助我。

最佳答案

Demo

<table border='1' width='100%'>
    <tr>
        <td style="background-image:url(https://www.google.co.in/images/icons/product/chrome-48.png); background-repeat: repeat-x; ">dgfdg</td>
        <td>gdgd</td>
    </tr>
</table>

09-28 05:09