隐藏特定div的背景图片

时间:2013-08-02 08:44:30

标签: html asp.net css background-image background-process

<div style="width: 100%; height: 40px; background-image:url('images/newhom/_Menu_Bg.png'); background-repeat:repeat-x " align="center">       
          <div style="width: 1260px" align="center">         
                  <table cellpadding="0" cellspacing="0" border="0" style="height: 40px;">                 
                        <tr>             
                              <td >                   
                                   1) home                                 
                              </td>                      
                               <td>             
                                   2) about us                
                                </td>
                                 <td>              
                                       ....      
                                 </td>
                         </tr>
                  </table>
          </div>
 </div>

我想隐藏div style =“width:1260px&gt;的背景图片。

请给我一些解决方案,

1 个答案:

答案 0 :(得分:0)

给它一个背景色

<div style="width: 100%; height: 40px; background-image:url('images/newhom/_Menu_Bg.png'); background-repeat:repeat-x " align="center">       
          <div style="width: 1260px; background-color: #fff;" align="center">         
                  <table cellpadding="0" cellspacing="0" border="0" style="height: 40px;">                 
                        <tr>             
                              <td >                   
                                   1) home                                 
                              </td>                      
                               <td>             
                                   2) about us                
                                </td>
                                 <td>              
                                       ....      
                                 </td>
                         </tr>
                  </table>
          </div>
 </div>