Home >Web Front-end >HTML Tutorial >ul li How to set the disabled effect? _html/css_WEB-ITnose

ul li How to set the disabled effect? _html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 12:18:425094browse

RT~~~, I want to use ul li as a menu item,

  • img...
  • . If I want to achieve the disabled effect (grayed out), what should I do?


    Reply to the discussion (solution)

    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.

    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn