1
通常のイメージの代わりにMaterialize Carouselメソッドで、Iframeを挿入してスライドにWebリンクを埋め込みました。 Iframeを挿入すると、クリックしてスライドを切り替えることができません。MaterializeのiFrame Carouselが動作しない
カルーセル方式:
<div class="carousel">
<a class="carousel-item"> <iframe style=' max-height: 700px; max-width: 420px; width: 340px; height: 566px;' src='http://www.website.com' frameborder='0' allowfullscreen scrolling='no'></iframe></a>
<a class="carousel-item"> <iframe style=' max-height: 700px; max-width: 420px; width: 340px; height: 566px;' src='http://www.website.com' frameborder='0' allowfullscreen scrolling='no'></iframe></a>
<a class="carousel-item"> <iframe style=' max-height: 700px; max-width: 420px; width: 340px; height: 566px;' src='http://www.website.com' frameborder='0' allowfullscreen scrolling='no'></iframe></a>
<a class="carousel-item"> <iframe style=' max-height: 700px; max-width: 420px; width: 340px; height: 566px;' src='http://www.website.com' frameborder='0' allowfullscreen scrolling='no'></iframe></a>
</div>
非アクティブなスライドがクリック可能ではありません。クリックすると、起動されません。
pointer-events: none;
をiframeの上のクリックイベントを無効にする: は親切に私を追加し、IFRAMEのstyle
属性では、溶液
jsfiidle - > https://jsfiddle.net/0pphee0e/ – user1428716
ありがとうございました。あるカルーセルアイテムから別のカルーセルアイテムに移動するために機能しました。しかし、私はアクティブなカルーセル項目で操作を行うことができません。私が持っているすべてのIframeには、ホバーとクリックイベントがあります。これを行うにはどんな方法ですか? – gapc311