Hyperlinking an image using CSS

后端 未结 10 990
清酒与你
清酒与你 2020-12-11 05:39

I know this is probably the dumbest question ever, however I am a total beginner when it comes to CSS; how do you hyperlink an image on a webpage using an image which is sou

10条回答
  •  一向
    一向 (楼主)
    2020-12-11 06:09

    That's really not a CSS thing. You still need your A tag to make that work. (But use CSS to make sure the image border is either removed, or designed to your required spec.)

    foo alt
    

    EDIT: Taking original intent (updated question) into account, a new code sample is below:

    foo alt
    

    You're still in an HTML world for links, as described by other answers on this question.

提交回复
热议问题