CSS利用Bootstrap5给图片放大效果代码
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Description" content=""> <title>点击图片放大实例</title> </head> <body> <img src="https://www.xgncrusher.ru/static/upload/image/20240416/1713239224858834.gif" alt="" data-bs-toggle="modal" data-bs-target="#myModal"> <div class="modal fade bs-example-modal-lg text-center ding75" id="myModal" role="dialog" data-toggle="modal" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg" style="display:inline-block;width:auto;"> <div> <img src="https://www.xgncrusher.ru/static/upload/image/20240416/1713239224858834.gif" alt=""> </div> </div> </div> </body> </html>
Statement: If the content on this site infringes upon the legitimate rights and interests of the original author, please contact this site to delete it.