javascript - layer popup layer plug-in problem

WBOY
Release: 2016-08-29 08:50:50
Original
977 people have browsed it

<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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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()

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template