【发布时间】:2016-03-10 08:38:41
【问题描述】:
我目前正在处理这个WordPres-Template。你看到“预约”下的按钮了吗?我不知何故需要将鼠标指针 onmouseover 更改为默认值。但是模板使用了Revolution Slider,所以我不知道把代码放在哪里。
我试过这样的:
img:hover
{
cursor:ponter;
}
我也试过这个:
.tp-caption .lfr .tp-scrollbelowslider .start .img:hover
{
cursor:pointer;
}
滑块的 HTML 如下所示:
<div class="tp-caption lfr tp-scrollbelowslider start" data-x="703" data-y="691" data-speed="300" data-start="500" data-easing="Power3.easeInOut" data-elementdelay="0.1" data-endelementdelay="0.1" data-endspeed="300" data-scrolloffset="0" style="z-index: 9; left: 0px; top: 200px; visibility: visible; opacity: 1; transform: translate3d(0px, 0px, 0px);"><img style="width: 0px; height: 0px;" src="http://test.de/wp-content/uploads/2016/03/whitebutton.png" alt="">
</div>
<img style="width: 0px; height: 0px;" src="http://test.de/wp-content/uploads/2016/03/whitebutton.png" alt="">
这个选择器也不起作用:
li.tp-revslider-slidesli:nth-child(2) > div:nth-child(6) > img:nth-child(1):hover
【问题讨论】:
-
请直接将代码添加到您的问题中,无需使用图像。当复制和粘贴变得如此简单时,没有人愿意在答案中输入代码。
-
增加 CSS 指令的优先级使其更精确。而不是
img:hover我们body article .div-a .div-b img:hover。 dom路径越精确,渲染时优先级越高。
标签: css wordpress html revolution-slider