Bootstrap实现图片弹出放大

前台HTML:

复制代码
<td><center><img style="height: 100px;width: 100px;" onmouseover="this.style.cursor='pointer';this.style.cursor='hand'" onmouseout="this.style.cursor='default'"  src="" onclick="javascript:showimage('');" />center>td>
  

<div id="ShowImage_Form" class="modal hide">         
         <div class="modal-header">
             <button data-dismiss="modal" class="close" type="button">button>
         div>
           <div class="modal-body">
            <div id="img_show">
            div>
        div>
    div>
复制代码

实现JS:

//显示大图    
   function showimage(source)
     {
         $("#ShowImage_Form").find("#img_show").html("");
         $("#ShowImage_Form").modal();
     }

实现效果:

Bootstrap实现图片弹出放大_第1张图片

你可能感兴趣的:(Bootstrap)