zoukankan      html  css  js  c++  java
  • jbox 图片的放大与缩小

    html代码

     <div class="table-box">
            <table style="border:none;">
                <thead>
                <th class="name">图片</th>
                <th class="name"></th>
                <th class="name"></th>
                <th class="name"></th>
                <th class="name"></th>
                <th class="name"></th>
                </thead>
                <tbody>
                <tr>
                    <?php $i = 0;foreach ($pictures as $pic): ?>
                    <?php if ($i==6): ?>
                </tr>
                <tr>
                    <?php $i = 0; endif; ?>
                   <td>
                       <img src="<?php echo $pic['picturepath'];?>" alt="<?php echo $pic['picturetype']; ?>" style="height:80px;80px;cursor:pointer" onclick="javascript:CallJbox('<?php echo $pic['picturepath'];?>','<?php echo $pic['picturetype']?>',500,450)"/>
                    </td>
                    <?php $i++;endforeach; ?>
                </tr>
                </tbody>
            </table>
        </div>
    //弹窗显示界面
        function CallJbox(url,title) {
            html = "<img style='500px;height:450px' src='" + url + "'/>";
            $.jBox(html, {
                title:title,
                 500,
                height: 450,
                iframeScrolling: 'yes',
                buttons: {}
            });
        }
  • 相关阅读:
    Servlet文件上传下载
    通过jquery将多选框变单选框
    Java 浮点数精度控制
    JS实现点击table中任意元素选中
    SpringMVC-时间类型转换
    SpringMVC--提交表单
    路径 专题
    防盗链
    Request
    RequestResponse简介
  • 原文地址:https://www.cnblogs.com/lqw4/p/4825665.html
Copyright © 2011-2022 走看看