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: {}
            });
        }
  • 相关阅读:
    Quick Find
    并查集
    树形问题和更多树
    二叉搜索树的局限性
    Oracle Auto Increment Column
    测试机器性能
    EXP/IMP version
    python getaddrinfo 函数
    open cursor too much error
    要看的一些链接
  • 原文地址:https://www.cnblogs.com/lqw4/p/4825665.html
Copyright © 2011-2022 走看看