我有一个滑块,左右滑块控件是箭头并跟随光标。这些正在取代旋转滑块的标准导航。一切看起来都很棒,直到我将鼠标悬停在内容按钮上,然后悬停功能不再正常工作。所以我想在悬停在这些按钮上时隐藏箭头。
我尝试使用 CSS display:none 或 background:none 但这没有用:
.tp-leftarrow a:hover, .tp-rightarrow a:hover {
background: none !important;
display:none;
}
我确定这需要用 JS 来完成,但我的 JS 技能目前确实跟不上速度。
CSS:
.rev_slider.interactive-arrows {cursor: none}
.rev_slider.interactive-arrows .rs-layer[data-actions] {cursor: pointer}
.rev_slider.interactive-arrows .tp-videolayer {cursor: auto}
.interactive-arrows .tparrows {
cursor: none;
visibility: hidden;
pointer-events: none;
transform: none !important;
transition: none !important;
}
.tp-leftarrow:before {
/*content: "\23" !important; */
color: #000;
content: "" !important;
background: url(/wp-content/themes/bridge/css/img/slider-left-normal.png);
color: #000;
width:60px;
height:39px;
}
.tp-rightarrow:before {
/* content: "\24" !important; */
content: "" !important;
background: url(/wp-content/themes/bridge/css/img/slider-right-normal.png);
color: #000;
width:60px;
height:39px;
/* filter: drop-shadow(0 0 5px #333); */
font-size: 66px !important;
}
旋转滑块不起作用,我不知道为什么。
非常感谢你的帮助!
慕哥6287543
侃侃尔雅