亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - Can I use js to add a continuous hover effect to a div, as if another mouse is always on it?
巴扎黑
巴扎黑 2017-07-05 10:56:42
0
2
1116

This is the style of the navigation bar made before p after. Now I want to add a hover style to the page number of the current page.
If I use js to control the dom, I will only change the background color of the middle p. I don’t know how to use the dom to operate the before and after styles.
So I wonder if I can use js to add an effect to p to make it look like it is always in the hover state.
The style when hovering is written, and the entire parallelogram can change color.

巴扎黑
巴扎黑

reply all(2)
巴扎黑

Use js to add a class to the DOM, and then the css is almost the same as your hover writing method

伊謝爾倫

Can’t.

You can add a class to the hover style to let js control it.

.js-item-hover, .item:hover { ... }
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template