boz*_*tko 1 image click fullscreen fotorama
我正在使用fotorama js插件作为产品库。单击主图像(而非缩略图)时如何打开全屏模式?我想允许用户通过单击图像而不是右上角的全屏图标来打开全屏模式。
这个答案对我不起作用:https : //stackoverflow.com/a/19064471/4680550
经过数小时的寻找解决方案,我终于找到了。只需使全屏图标透明,全高和全宽即可覆盖主图像:
.fotorama__fullscreen-icon {
background: url('../img/bg.png') no-repeat scroll 0 0 rgba(0, 0, 0, 0) !important;
width: 100% !important;
height: 100% !important;
right: 0 !important;
top: 0 !important;
z-index: 10 !important;
}
Run Code Online (Sandbox Code Playgroud)