Home > front end >  HTML, JavaScript
HTML, JavaScript

Time:09-19

Questions and code are in the picture, enthusiastic netizen to help answer under

CodePudding user response:

Brother, your picture?

CodePudding user response:

reference 1st floor qq_42966289 response:
brothers about your picture

Forget to send the sorry
https://s1.ax1x.com/2020/05/11/YG3hE4.png
https://s1.ax1x.com/2020/05/11/YG3559.png
https://s1.ax1x.com/2020/05/11/YG34UJ.png

CodePudding user response:

reference 1st floor qq_42966289 response:
brothers about your picture

https://s1.ax1x.com/2020/05/11/YG3hE4.png
https://s1.ax1x.com/2020/05/11/YG3559.png
https://s1.ax1x.com/2020/05/11/YG34UJ.png
Forget to put figure of bed sent us the link to open the browser

CodePudding user response:

Disappear in your sub menu callback is ready you can change the background color. This style. The background color=

CodePudding user response:

reference 4 floor nian_cj response:
in your callback submenu disappear you can change the background color is good for this. Style. The background color=

Try not ah,

CodePudding user response:

Don't use this. Style. "background=" "this way, set the background color, add class style with js, when the mouse move removeClass off the class

CodePudding user response:

refer to 6th floor xiaoxiang dream response:
don't use this. Style. "background=" "this way, set the background color, adding the class styles with js removeClass when mouse move off this class

How to add a class style don't understand

CodePudding user response:

reference 7 floor TheChina. Response:
Quote: refer to the sixth floor xiaoxiang dream response:
don't use this. Style. "background=" "this way, set the background color, adding the class styles with js removeClass when mouse move off this class

How to add a class style don't know much about


This is js
Add: this. ClassList. Add (" active ");

Remove: this. ClassList. Remove (" active ");

There are several kinds of methods: https://blog.csdn.net/liuwengai/article/details/78795969? Utm_medium=distribute. Pc_relevant. None - task - blog - BlogCommendFromMachineLearnPai2-2. Nonecase& Depth_1 - utm_source=distribute. Pc_relevant. None - task - blog - BlogCommendFromMachineLearnPai2-2. Nonecase

This is a jquery:
Add: enclosing addClass (" type ")

Remove: this. RemoveClass (" type ");

  • Related