简体   繁体   English

上课失败 <li> 标签

[英]Class disabled not working <li> tag

i write a class disabled in li tag show disabled style but click the menu is run 我写了一个在li标签中显示禁用样式的禁用类,但单击菜单运行

<li class=" disabled"> <a class="ajax-link" href="#"><i class="glyphicon glyphicon-align-justify"></i><span> List Services</span></a></li>

why the menu inactive in class disable any way to disable the menu in this condition ,please help me, thanks in advance 为什么菜单在课堂上处于非活动状态,在这种情况下禁用了禁用菜单的任何方式,请帮帮我,谢谢

The element is never the target of mouse events; 元素永远不是鼠标事件的目标; however, mouse events may target its descendant elements if those descendants have pointer-events set to some other value. 但是,如果鼠标后代的指针事件设置为其他值,则鼠标事件可能以其后代元素为目标。

Use this code: 使用此代码:

.disabled a {
   pointer-events:none; 
   opacity:0.6;
}

CSS: CSS:

.disabled {
    pointer-events:none; //This makes it not clickable
    opacity:0.6;         //This grays it out to look disabled
}

add this to solve that issue !!! 添加此解决该问题!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM