How to link an image and target a new window

后端 未结 6 1408
孤城傲影
孤城傲影 2020-12-10 23:33

I have a picture, if I click onto that picture, how can I build an image reference so another page opens in a new tab or a new window of my browser displaying the picture?

6条回答
  •  清歌不尽
    2020-12-11 00:17

    To open in a new tab use:

    target = "_blank"
    

    To open in the same tab use:

    target = "_self"
    

提交回复
热议问题