开发者

How stop the link of href from being highlighted?

I am setting an anchor tag for an image. It is highlighted and I want to remove the image from being highlighted. How to do this?

This is my anchor tag (some PHP in it):

<a style="outline:none;"  href="<? echo base_url();?>/friends/UploadPhoto"> 
  <img src="<?=$imgp ?>" name="b1" width="90" height="80" border=开发者_如何学C"0"/>
</a>


Better, do this in your CSS sheet:

img {
    border: none;
}

If you want to do it only for images inside a tags, you could also do

a img {
    border: none;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜