私のカルーセルのページングをカルーセルとその下のdivに重ねたいとします。ただし、ページングのコンテナをmargin-top: -49px;
に設定すると、ページャーの下半分にあるcssによってホバーが認識されません。その後、私のページング制御の下半分の上にマウスCSS Hoverがマージントップのマイナス値で呼び出されていません
.under-div:hover{
background-color: blue;
}
は、私がここにデモの目的のために.slick-dots:hover{ background-color: red; }
追加.under-div
で青の背景をトリガー:
は、より多くのデバッグの後、私は私が追加した場合に発見
コードです:
<div class="slick-list draggable">
<-- here is the carousel -->
</div>
<div class="slick-controls">
<ul class="slick-dots" style="display: table;bottom: -49px;">
<li class="slick-active">
<button type="button" data-role="none">1</button>
</li>
<li>
<button type="button" data-role="none">2</button>
</li>
</ul>
</div>
.slick-list {
position: relative;
overflow: hidden;
display: block;
margin: 0;
padding: 0;
}
.slick-controls .slick-dots {
display: table! important;
width: auto;
line-height: inherit;
position: relative;
bottom: -25px;
padding: 10px;
display: inline-block;
background-clip: padding-box;
margin: auto;
/* opacity: 0; */
-webkit-transition: all 200ms ease-out;
-moz-transition: all 200ms ease-out;
-o-transition: all 200ms ease-out;
transition: all 200ms ease-out;
z-index: 5000;
}
.slick-controls {
margin-top: -49px;
}
位置を追加しようとしましたか:相対; z-インデックス:2;スレーブコントロールに?あなたがjsfiddleを提供することができれば、それは非常に役に立ちます – Greg