Attach image to ActionLink in MVC 4

前端 未结 4 1953
旧巷少年郎
旧巷少年郎 2021-01-14 01:33

I am using ActionLink with id in MVC 4 app and assinging actionLink id an image in css but on on earth I am doing wrong. is not working! here is my code

 <         


        
4条回答
  •  时光取名叫无心
    2021-01-14 02:11

    This is from my application. Works ok:

    .logo{
    background:no-repeat url(/Content/photo/png/sprite.png) 0 0;
    height:15px;
    width:20px;
    overflow:hidden;
    float:left;
    border:none;
    display:inline;
    }
    
    
    

提交回复
热议问题