Text on an Image button in c# asp.net 3.5

后端 未结 9 1145
情话喂你
情话喂你 2020-12-03 17:52

I have a image button. I wanted to add a text \"Search\" on it. I am not able to add it because the \"imagebutton\" property in VS 2008 does not have text control in it. Can

9条回答
  •  心在旅途
    2020-12-03 18:30

    If you use a Link button, you can add a bootstrap button and then add text via the CSS "after" property.

    LinkButton:

    
                    
    

    CSS:

    #MainContent_download:after{ 
    content: "Download"; 
    padding-left: 5px;
    

    }

提交回复
热议问题