简体   繁体   English

Introjs 没有突出显示保险丝侧边栏元素

[英]Introjs is not highlighting the fuse-sidebar elements

I have created an angular project for which I am using fuse-sidebar .我创建了一个 angular 项目,我正在使用fuse-sidebar I am also using introjs .我也在使用introjs That is working fine but this is not highlighting the elements that are inside fuse-sidebar.这工作正常,但这并没有突出显示保险丝侧边栏中的元素。

This is how it looks for elements inside fuse-sidebar这是它在fuse-sidebar查找元素的方式

在此处输入图片说明

And this is how for the elements outside the fuse-sidebar这就是保险丝侧边栏外的元素的方法

在此处输入图片说明

for fuse elements there is highligher but the element is not shown in the highlight area like in the second photo that is for element that is outside the fuse-sidebar.对于保险丝元件,有highlighter,但该元件未显示在高亮区域,如第二张照片中的元件位于保险丝侧边栏之外。

What could be the issue?可能是什么问题?

the html is like this html是这样的

<fuse-sidebar></fuse-sidebar>
<div>other elements</div>

For div the z-index was 1001 so I have set the same to fuse-sidebar .对于 div, z-index为 1001,因此我将相同的值设置为fuse-sidebar But not working?但不工作?

There was CSS conflict.存在 CSS 冲突。 fuse-bar itself was setting fuse-bar本身正在设置

-webkit-transform: translateX(0) !important;
transform: translateX(0) !important;

So I need to unset transform property所以我需要取消设置transform属性

fuse-sidebar.locked-open.introjs-fixParent {
    -webkit-transform: unset !important;
    transform: unset !important;
}

this solved my problem.这解决了我的问题。

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

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