How can I display the checkbox over the images for selection?

后端 未结 3 970
感情败类
感情败类 2021-01-04 17:28

I want to display a checkbox for selection on the right bottom of every image..

How can i do something like this?

Please remember that clicking on image has

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-04 18:06

    If it were me I would try usign jQuery for this.Lets pretend that each image is in each own div and the checkbo has an id of check:

      $('div').click(function()
    
        { 
             //you select the checkbox and ad the code to do what you want to it
    
           ('#check').
    
        });
    

提交回复
热议问题