• 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: {}
            });
        }
  • 相关阅读:
    接口
    java基础
    java的反射
    按照字典序打印所有的字符串
    求幂的问题
    时间复杂度与空间复杂度
    孩子们的游戏(圆圈中最后剩下的数)
    约瑟夫环问题
    翻转单词顺序列
    复杂链表的复制
  • 原文地址:https://www.cnblogs.com/lqw4/p/4825665.html
Copyright © 2020-2023  润新知