Home  >  Article  >  Web Front-end  >  How to use Bootstrap to achieve image pop-up and enlargement

How to use Bootstrap to achieve image pop-up and enlargement

PHPz
PHPzOriginal
2017-09-23 11:08:527819browse
<td>
<center>
<img  alt="How to use Bootstrap to achieve image pop-up and enlargement" >" onclick="javascript:showHow to use Bootstrap to achieve image pop-up and enlargement('<?php  echo $v[&#39;pic_detail&#39;];?>');" /></center>
</td>
  <p>         
         </p><p>
             <button></button>
         </p>
           <p>
            </p><p>
            </p>
        
    

Implement JS:

//显示大图    
   function showHow to use Bootstrap to achieve image pop-up and enlargement(source)
     {
         $("#ShowImage_Form").find("#img_show").html("<how to use bootstrap achieve image pop-up and enlargement></how>");
         $("#ShowImage_Form").modal();
     }

##Implementation effect:

How to use Bootstrap to achieve image pop-up and enlargement

[Related video recommendations:

Bootstrap Tutorial]

The above is the detailed content of How to use Bootstrap to achieve image pop-up and enlargement. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn