css - ASP.net Button with CssClass not working -


problem:

i have 2 asp.net buttons work fine in chrome , firefox browser not in ie 9.0.

*does not work on ie 9.0* <asp:button id="btnmeal" runat="server" onclick="btnmeal_click" text="." cssclass="buttonmeal" />  *works fine on ie 9.0 , other browsers* <asp:button id="btntype" runat="server" onclick="btntype_click" text="." cssclass="button"/> 

css code:

/*doesnt work*/ .buttonmeal  {         background: url('../images/meal.png') no-repeat;         width:82px;         height:32px;         border:0px;          }  /*works*/     .button     {         background: url('../images/type.png') no-repeat;         width:82px;         height:32px;         border:0px;          } 

maybe think problem because renders in ie differently , button used in ie.

<td class="mystyle">     <input type="button" name="select" ...> </td> 

most caching issue (it me anyway). there's change browser not using newest version of css file. try hard refresh:

chrome / ie / firefox: ctrl + r


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -