html - Icon .ico extention doesn't display in IE or Chrome -
I have gridview buttons for using and removing CSS to display icons for each. It's okay in Firefox It's working, but Icax is not displayed in IE or Chrome. This is my CSS code
.delete {display: inline; Background: Repeat the URL 'delete.ico'; Border: Nobody! Important; Background-position: -0px -0px; Width: 20px; Height: 20px; Float: None; }. Editing {display: inline; Background: URL ('edit.ico') No-repeat; Border: Nobody! Important; Background-position: -0px -0px; Width: 20px; Height: 20px; Float: None; } [edit] Here are the html buttons
& lt; Asp: TemplateField & gt; & Lt; ItemTemplate & gt; & Lt; Asp: button id = "btnDelete" runat = "server" CssClass = "CommandName =" delete "on command =" BtnDelete_Command "CommandArgument = '& lt;% # DataBinder.Eval (Container," RowIndex ") +"; "+ Eval (" code ") +"; + + Eval ("name")%> 'OnClientClick = "return not_check1 ();" / & Gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: TemplateField & gt; & Lt; ASP: TemplateField & gt; & Lt; ItemTemplate & gt; & Lt; Asp: button id = "btnEdit" runat = "server" CommandName = "edit" text = "" CssClass = "edit" on command = "BTNEDit command" command = argument <% # DataBinder.Eval (container, Randex ") +"; " + Eval ("code")%> '/ & Gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: TemplateField & gt; Display: Inline; ,
strong> display: inline-block; Keep in mind that you can not set the height to inline elements
Comments
Post a Comment