css 更改用于Envira Gallery灯箱的默认导航箭头图像。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 更改用于Envira Gallery灯箱的默认导航箭头图像。相关的知识,希望对你有一定的参考价值。

/** Customize the Envira Gallery lightbox navigation arrows **/
.envirabox-wrap .envirabox-next span { 
  background-image: url('http://example.com/images/envira-arrows.png'); /* update with url to own navigation arrow image */
  background-position: right;
  background-size: 200%;

  /* May be necessary to change the default height and width values to account for your specific background image. */
  width: 53px;
  height: 34px;
  
  /* This value should be half the height value */
  margin-top: -17px;
}

.envirabox-wrap .envirabox-prev span { 
  background-image: url('http://example.com/images/envira-arrows.png'); /* update with url to own navigation arrow image */
  background-position: left;
  background-size: 200%;
  
  /* May be necessary to change the default height and width values to account for your specific background image. */
  width: 53px;
  height: 34px;
  
  /* This value should be half the height value */
  margin-top: -17px;
}

/* Use Media Queries to indicate the retina image you wish to use for the navigation arrows to replace the defaults */
@media only screen and (-webkit-min-device-pixel-ratio: 2), 
only screen and (min--moz-device-pixel-ratio: 2), 
only screen and (-o-min-device-pixel-ratio: 2 / 1), 
only screen and (min-device-pixel-ratio: 2), 
only screen and (min-resolution: 192dpi), 
only screen and (min-resolution: 2dppx) {
    .envirabox-prev span, .envirabox-next span {
        background-image: url('http://example.com/images/envira-arrows-retina.png') !important;
        background-size: 53px 34px !important;
    }
}

以上是关于css 更改用于Envira Gallery灯箱的默认导航箭头图像。的主要内容,如果未能解决你的问题,请参考以下文章

css CSS选择器用于自定义Envira Gallery标记插件标记过滤器链接。

css CSS使Envira灯箱导航箭头始终可见。

css Envira Gallery分页CSS结构

html 从Envira Gallery图像中删除title属性,以防止它在悬停时出现。

html 使用https://gist.github.com/ericakfranz/a470a198f3f4758c2f2c时在Envira灯箱中加载自托管视频的链接示例

css Envira Breadcrumbs Addon css选择器用于自定义样式。