onmouseover里面的innerHTML加两个p会闪烁,一个不会:
Title
每日
每周
每月
- 1
- 2
- 3
- 4
- 5
- 6
- 111
- 222
- 3333
- 444
- 555
- 666
- 1aa
- 2aa
- 3aa
- 4aa
- 5aa
- 6aa
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
mouseover 会在鼠标移动的时候不断触发,导致重写 li 里的 html 内容,改成 mouseenter 和 mouseleave 就可以了
例子可以看这个:https://jsfiddle.net/chenjsh3...
试试改成
onmouseenter和onmouseleave呢