html5实现点击弹出图片

前台代码:

<a href="javascript:;" onclick="repeat()">

<div id="modal_volume" style="position: fixed; text-align: center; width: 100%; height: 100%; top: 0; z-index: 9999; display: none;">
        <table style="width: 100%; height: 100%;">
            <tr>
                <td align="center" style="">
                    <div style="width: 900px; position: relative">
                        <a href="zjb_enroll?course=专业课提高班">
                           <img src="Content/images/tanchuang.jpg" /></a>
                        <a href="javascript:$('#modal_volume').fadeOut();" style="display: block; width: 45px; height: 45px; position: absolute; right: 11px; top: 10px; z-index: 2"></a>
                    </div>
                </td>
            </tr>
        </table>
</div>

js代码:

    <script>
        function repeat() {
            $('#modal_volume').fadeIn();
        }
    </script>

猜你喜欢

转载自blog.csdn.net/qq_38225873/article/details/82942363
今日推荐