javascript – Adding a cross to a picture


Tell me how to make sure that the cross is added automatically to the picture that opens to the full width of the screen. Using fancybox 3

   <a data-fancybox data-src="#hidden-content-1" href="javascript:;">
       <img src="images/product/bookkeeper-product1.png" />
    <img style="display: none;" id="hidden-content-1" src="images/product/bookkeeper-product1.png">


Use a data-src , and data-srcset :

<script src=""></script>
<link href="" />
  <script src=""></script>
  <a data-fancybox="images" data-srcset="#hidden-content-1" href="">
       <img src="" />
  <img style="display: none;" id="hidden-content-1" src="">
Scroll to Top