Home  >  Article  >  Backend Development  >  javascript - layer popup layer plug-in problem

javascript - layer popup layer plug-in problem

WBOY
WBOYOriginal
2016-08-29 08:50:50933browse

<code>$('.am-g.trends').on('click','.ex-main-img', function () {
        layer.open({
            type: 1,
            title: false,
            closeBtn: 0,
            area: '500px',
            skin: 'layui-layer-nobg', //没有背景色
            shadeClose: true,
            content: $(this)
        });
    });
</code>

I used the layer plug-in, clicked on the picture, and a magnified picture of itself popped up, but it disappeared. I wonder if anyone has a similar experience

javascript - layer popup layer plug-in problem

javascript - layer popup layer plug-in problem

javascript - layer popup layer plug-in problem

Reply content:

<code>$('.am-g.trends').on('click','.ex-main-img', function () {
        layer.open({
            type: 1,
            title: false,
            closeBtn: 0,
            area: '500px',
            skin: 'layui-layer-nobg', //没有背景色
            shadeClose: true,
            content: $(this)
        });
    });
</code>

I used the layer plug-in, clicked on the picture, and a magnified picture of itself popped up, but it disappeared. I wonder if anyone has a similar experience

javascript - layer popup layer plug-in problem

javascript - layer popup layer plug-in problem

javascript - layer popup layer plug-in problem

content changed to this.clone()

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn