【问题标题】:How to write this condition in javascript?如何在javascript中编写此条件?
【发布时间】:2022-09-29 20:07:03
【问题描述】:

当我的灯箱类成为目标时,我想写一个条件 将隐藏滚动类添加到部分类并在我的灯箱未定位时删除隐藏滚动类

{
    outline: none;
    top: 0;
    opacity: 1;
    pointer-events: auto;
    transition: all 1.2s ease;
    -moz-transition: all 1.2s ease;
    -ms-transition: all 1.2s ease;
    -o-transition: all 1.2s ease;
    -webkit-transition: all 1.2s ease;
}
.hidden-scroll{
    overflow: hidden;!important;
}
  • 请添加您的html代码

标签: javascript html css


【解决方案1】:
.lightbox:target {
    overflow: hidden !important;
}

【讨论】:

    猜你喜欢
    • 2022-01-15
    • 1970-01-01
    • 2020-10-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-18
    • 2011-05-03
    • 1970-01-01
    相关资源
    最近更新 更多