RT~~~, I want to use ul li as a menu item,
Under ie, you can use disabled
To be compatible with your own simulation style, such as color: #A0A0A0
I don’t know if I understand Is it right? You want to gray it out and disable it, right? If so. You can just lose the click effect through JS. Or you can use CSS to add a layer of gray png images to the items that need to be disabled and cover it with absolute positioning.
Add a style. Then just clear all the events
I don’t know if this is what LZ wants. . .
document.getElementById("li_id").disabled = false;
Hey, disabled attribute definitely does not exist
Define it yourself, and then whether to continue execution based on the value of this attribute js method, and dynamically name different classes to match different css.