Entire div as a link?

后端 未结 8 1451
抹茶落季
抹茶落季 2021-02-04 04:55

I want to use an entire div as a link.. without the use of \"onclick\"

Is this possible with a simple href?

Thanks

8条回答
  •  萌比男神i
    2021-02-04 04:58

    why not you use javascript framework such as jquery, let the div has no onclick event but declare an event in jquery, such this:

       
    
       

    just my 2 cents. thanks.

提交回复
热议问题