我目前正在研究这个 WordPres-Template .您看到“预约”下方的按钮了吗?我不知何故需要将鼠标指针 onmouseover 更改为默认值。但是模板使用了Revolution Slider,所以我不知道把代码放在哪里。
我试过这样的:
img:hover
{
cursor:ponter;
}
我也试过这个:
.tp-caption .lfr .tp-scrollbelowslider .start .img:hover
{
cursor:pointer;
}
slider 的 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
最佳答案
cursor:pointer!important;
如果您在该特定层的Style -> Advanced CSS 选项下为所选层输入它,它将完成这项工作。
关于css - 在旋转 slider 中更改鼠标指针,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35911343/