简体   繁体   English

Revolution Slider自定义光标宽度问题

[英]Revolution Slider Custom Cursor Width Issue

the slider I'm trying to build is something like this : 我正在尝试构建的滑块是这样的:

marcusbredt.de marcusbredt.de

The wordpress theme I'm working on is using revolution slider. 我正在研究的wordpress主题是使用革命滑块。 The html and css is : html和css是:

 #content .tparrows, #content .hesperiden.tparrows { background: transparent; width: 44px; height: inherit; border-radius: 0; top: 50% !important; -webkit-transition: background linear .1s, color linear .1s, box-shadow linear .1s; -moz-transition: background linear .1s, color linear .1s, box-shadow linear .1s; -o-transition: background linear .1s, color linear .1s, box-shadow linear .1s; transition: background linear .1s, color linear .1s, box-shadow linear .1s; text-align: center; overflow: hidden; } 
 <div class="tp-leftarrow tparrows hesperiden noSwipe" style="top: 50%; transform: matrix(1, 0, 0, 1, 250, -145); left: 0px;"></div> <div class="tp-rightarrow tparrows hesperiden noSwipe" style="top: 50%; transform: matrix(1, 0, 0, 1, -344, -145); left: 100%;"></div> 

Originally width and height was 44px I want to click and change slides everywhere I click the mouse. 最初的宽度和高度是44px我想点击并在我点击鼠标的任何地方更改幻灯片。 When I change the height to inherit works fine, cant find what to do with the width. 当我改变高度继承工作正常,无法找到如何处理宽度。 If I gave a px value works fine in one screen resulution, doesnt work in the next. 如果我给一个px值在一个屏幕上工作正常,那么下一步就不行了。 Thanks 谢谢

Try this CSS code: 试试这个CSS代码:

.hesperiden.tparrows {
width: 50%;
height: 100%;
}

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

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