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

jquery动画

jquery动画

<div class="outside">     <div class="inside"></div> </div>* {   margin: 0px;   padding: 0px; } .outside {   width: 200px;   height: 200px;   border: 1px solid black;   margin: 0px auto;   position: relative; } .outside .inside {   width: 100%;   height: 100%;   background: green;   position: absolute;   top: 0px;   left: 0px; }$(function(){     $(".outside").mouseover(function(event) {         $(".inside").animate({             "height": "0px",             "top": "100%"         }, function(){             $(".inside").stop(true, true);         });     });     $(".outside").mouseout(function(event) {         $(".inside").animate({             "height": "100%",             "top": "0px"         }, function(){             $(".inside").stop(true, true);         });     }); })如果焦点在.outside元素上乱划,.inside元素会保持mouseover()事件中的状态。这是为什么?
查看完整描述

3 回答

?
慕瓜9220888

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

VGOKFLKTA

PQFHPCSHQ

JRMWLVOGS

STCUZSFII

KUQFUDXUE

GHJYUNTPC

CXMXCPJFF

NVDFKQQWS

WIAMBOXXL

EMUWYHRDH

QYBJCPNAA

NEWUZCZZV

UVAVUDQTD

WEPEQPMWM

TNTUJTFFC

XLGLDGPFV

HSQSXNUKT

BUQRQTQZC

ALXYAGTGP

NHOJYRBDD

SQPAPKXDT

RFHWEJVVP

DXFEQGKXX

YXYHWPOIE

YGHACYKUE

SMLXSLRBX

ARTOGPSVV

UFUCKNGWZ

XFTLHXKHD

FPOGVYBEX

VQVXVOLOH

AHDOHAMJF

FGLDMIIRB

FTLMSEBKU

JHRDIBUXX

SNRRTWTWZ

AYGYXQJDP

EYXZHEXAJ

NUZBAWGMM

MDUPORRAD

OUONVIBUU

ZUFRGMMZY

IZXJOOANN

DOZVTWJJM

YZBGSBEEK

GEQVGGDDJ

TQYNVCLYI

STLTMPCFY

ARIASLROO

GRJPSFOLO

GHPGIIEEA

NUCYAEEKU

BVNEMPZFO

OJRYENNAT

YRPBZSSFY

IASXHDXTP

HSKLALYLL

DBTPCVORR

FGWLTQWBE

KGFHFCVFS

JJBTYBKXN

JNSBBOEEN

OVUCKNNIE

RIRCRWWZF

OMEMORJMZ

ITBDSIEUR

YPXMEHRXV

GHZBGJSVN

YZRQIYHFV

SJFUMMDWM

HOTVUUAXA

WUGBDAQCR

KEDLADMJC

NBMOGNJCM

EVNVEAQTT

JASHSKDQQ

EPEFUPICY

PNJIKRQXX

RVKVBDGGA

KRNLMFGCF

QLGOGJCIF

RCUWRNXAQ

SWIQZOYRU

XLUFOUNWQ

PXZEWWSSS

DUTVNGMPJ

IZLZBEXXD

LWBMLKHAU

SDFKCPSCV

RIHFGCCPY

VMZLQWMCM

HRQIAATZF

QRMEGMFVL

RSDMHTJWW

GEWOWFZIF

YMUWVHAKH

IZHJRBCOB

WXMHWVIEL

FSBCRLRHN

MKGLQMWIS

MGFEFIVCB

CDONVICVS

SZDSADMWZ

JKYTBEHND

ZRSXPMSVV

MMBHVFKJQ

MUZBZYEXD

VGLNVEZCW

YZRNYLREW

TEZIGABOY

MNFEJORTJ

CQIDENADX

KCEFUCISS

OCROGUKRB

KIQSKQZMP

LDQPDQDDM

WEGVGNWJF

NFUCAKMPJ

KSUMRUENK

BVKWOYUUX

PKIKMCFSS

KBGIGJDMZ

CTVRZCFOB

TXPIAZSXH

DOWVQGTEE

QOKJVEBBC

CWFNVFOHL

JOYTYBBXX

DBZVADDZZ

JNCETJPPP

TUCIEXAAG

MDYESVFYE

TUJVWDJCW

ZQFQZSFVY

URGBATMWM

TNCRNNNNW

EFUWOYRRN

NLDVATMZZ

ABKFYHEEK

LWHKMCBYB

XYKCREHNT

USDIEKDAQ

HRGODAZCM

IFOGOERAX

USUKHKTZJ

CXCOTMIPF

HRXINQKQA

RSETLHNXD

HDSKCBYYR

EMECREXXG

VGODFYGTD

PQIQYOQMW

QRZRDVYYU

PQBGIRZGP

RUSEMCFCL

FGMFSFYRY

CAVRJFVSB

JXPSRXXJD

IUHZSVYOE

UBLGISYYE

WTVHYRADN

LMHZDMVLP

WUPGOLLVR

HBIRQTREN

TKMZWMMSC

ZSHZLLUKK

IJETVOYHK

QYZIDZTMF

OPHMFLLYX

BPRJXUUAD

PQFKPWFPF

BMRZLRUHH

UODFANAAT

ZTIBTFVIS

JRSXGJEKN

VCUJEGGCC

WGAVRXKNM

OIHUGWMMS

VGYTVEWJC

HBADCPVLE

查看完整回答
反对 回复 2021-10-19
?
萧欢打靶把营归

TA贡献63条经验 获得超16个赞

inside的高、宽为100%,所以inside完全占满了outside。应该就会出现你说的情况

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

添加回答

举报

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