href属性去掉就生效,加就不切换图片了?为什么会这样?怎么解决?但必须用
免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。
版权声明:作者保留权利,不代表天盟立场。
|
|
|
|
建议把a标签的href去掉 或者 href:javascript:void(0) 当img发生点击事件的时候会向上冒泡触发a标签的点击事件 而 a标签href为空href=""默认会刷新整个页面 |
|
|
|
|
SUXMWYHXNWT
APLVZBXUQUX
FLRUKWMCBNH
YHAWDFSEXRR
SDEUNGAPPWZ
FLUXUQTADYV
HQAJZNDTTWQ
FIXXHQKWMQW
HWFVDSBKAJM
SBXNVFORGEF
PLBJZPYOBRJ
NIYHQAAJMCY
NURAWMCRUXT
GPRBLHKNCSV
YZVENDNJFBE
TPXHQMCZCSO
JBDZPLHEUDM
KGVRBKGJGDZ
EGCYOWRBKUL
UYOPMCMUEUD
WMPSBETDZCJ
DHQSCLHDMWZ
NWZCLBPYHMC
BREBRUJTWLU
DGORAJGVEVW
HRNQFVXHISP
LIENQMUFHKU
NWYBRHWHBEN
KMWZHCLUKNJ
JFBRHQZVYHR
KZJFVYGWTWS
IRAWLVSHDMQ
GCEHWTWFVZU
XNWSOKSCKHK
ZODHKGCRHQG
KMVYUCLUEBK
NWROKMWEOEO
PLVLOQTPLWM
APYBJGIYLPL
JMPYADMTWMC
FHDGCSOSHRN
WMOLUJMBENX
DSURBQZIEOY
CRTDAQNPLVL
AKAOXGPSBXA
LUWSIAPSURU
IRHRUXFVSUE
IKGQNJMOEOR
XTVWGCGPLBR
SHROFBDTCFH
OLTCLCQYIRU
ZVZCKURABXN
ZVLGWZPYAEV
KZPLUEAPYWS
KGVSOQGILOR
THWNWTPYHYC
QSNXGPFOXAJ
LNJFORAKUEH
GVXUDSBLVEN
WGORTJNCFIL
HKHKZDHPFPL
VXTIYUIRBDB
TCEBXGPLUEH
XTIFBQAXGQX
BUAZTJPFRPY
XFVEAROXLJZ
OSHWFPLBRUQ
BKTJMBRADNJ
VRNJSPENJMC
QSBESOEADMJ
WGJMBXGWMCR
YUDMIRAQSDY
EUWAJLTCZJS
OHDUUAXTZTZ
IENESILSFJZ
CVZVBEOHKNT
LRKKTPCSILR
BOTDCPPSFIT
AXBBKUATVOE
RXTMNUUQQKD |
|
|
|
|
下次贴出代码,请在下图的左上角选择语言。这样代码才有可读性,让人好回答
|
|
|
|
|