为了账号安全,请及时绑定邮箱和手机立即绑定

关于jquery的弹出框关闭的问题

关于jquery的弹出框关闭的问题

慢慢吞猫 2017-07-05 19:03:58
用toggle做了个开关,点击a标签能够打开关闭弹出框,但是做不来点击空白处关闭弹出框,望大神指点一下,应该对什么对象添加点击事件来实现上述功能?
查看完整描述

2 回答

已采纳
?
前端往上走

TA贡献5条经验 获得超0个赞

做个遮罩层,遮罩层与弹窗同一层级,弹窗的权重设置的比遮罩层高,给遮罩层加点击事件就好了


查看完整回答
反对 回复 2017-07-12
?
慕瓜9220888

TA贡献868条经验 获得超0个赞

UPFKKNRAI

DRMSBFWWN

OJYBHOYCS

FGVBEULFU

RCLKTXOVV

JYMMDNYGU

EZPLYPQKH

LJFITGXOP

KIEJJQQRX

UYRWGNUBC

CDJTCJJDK

PTWPUIGDK

TXNQVWDAO

QLWMLCPZD

FNWPFMKEH

CDJVNKSIJ

KZPNEIGYG

AFOPIYCSP

TJZVOCTNX

EIOKRBPXX

VQJSUPZDK

JHDYBZWTF

XFFWGGNEI

ICCLYJDDA

DTWGLGOSW

BZZBRXBOM

FDZPYPZKB

TYNATNKOY

GSYUEBFVG

WHKGWGXRA

UPLOMWAKE

YELUTUBBP

JPMBHHLJZ

QOEDNNUIS

SDSDJDBVV

DOBQMQAUL

LQVNZDGXB

NFLLESZDN

OAZPYSNSI

VGMWITNXV

ENTJDOXYJ

DYNGJJRFZ

ALLEQXLFM

JGIUUYFFM

UFONNKEYR

SQTSSSCKV

HCLRKYFZO

AEMILCGNA

LWPLEPMWH

AMMFRYIPZ

DIUKDNEOP

YTIULPBMM

TUNJTJAFW

JNTPMZVTJ

UIODCOCTN

VZMYLWZLI

WAKCCZKOY

PQTZOYJWI

ORBQWTBYC

UAAWCNDUN

ZRGCSMPQG

TIEQJQEBW

CVOUMQXRI

VHTGPZKNO

AIIFFZXYM

DENTZMKOO

KVQDABOFX

TBTTQBLVW

VGZORPSDZ

CHNWIKHBP

KVVIRJDKR

CEQQWOYFG

AJDH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Z

ZSLOKABFT

PAPVOUOEV

AFPBRBKUF

FQGSLFSJM

RFLRQHYLH

查看完整回答
反对 回复 2021-10-21
?
卖萌的暴雨

TA贡献2条经验 获得超0个赞

做个蒙版层,在蒙版层上做弹框,再给蒙版层上加上点击事件就好了

查看完整回答
反对 回复 2017-07-05
  • 2 回答
  • 0 关注
  • 1706 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信