html - Image as link doesn't work -


i have <a> background:

 <a class="link" href="/#/index"></a> 

and css it:

.link {   display: block;   width: 50px;   height: 50px;   float: left;   text-indent: -9999px;   background:  #fff url("/logo.png") no-repeat; } 

image displays normally, link doesn't work, when hover on image cursor default, not pointer, , page doesn't update after click.

put &nbsp; inside a tag

<a class="link" href="/#/index">&nbsp;</a> 

Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -

matlab - How to equate a structure array to structure array -