javascript - How to achieve the effect of displaying a red border on mouse hover
过去多啦不再A梦2017-07-05 11:04:45
0
8
1281
Who has done this effect? This is what I wrote, using border-right:1px solid #eee;border-bottom:1px solid #eee; when the mouse is hovering ul li:hover{border-color:# ed9639;}How to make a pixel red frame on the left side
It seems like each item title has only the right and bottom?
I think it would be better to change each item to have a left side and a bottom side. How about setting the left side color of adjacent elements when hovering?
It seems like each item title has only the right and bottom?
I think it would be better to change each item to have a left side and a bottom side. How about setting the left side color of adjacent elements when hovering?
Example:
http://runjs.cn/detail/ibxy9qab
box-shadow
Is it blocked by the li on the left? Does the one on the far left have a red edge?
Border-left doesn’t work?
Is it because the weight of your selector is too small and is overwritten?
When hovering, z-index needs to be set. Higher than other levels so that your borders are not covered
Thank you for your answers, I have found a solution and share it with you
http://www.jb51.net/css/14548...