Hexo-theme-next: 多图功能 图片不能放大

Created on 14 Aug 2016  ·  8Comments  ·  Source: iissnan/hexo-theme-next

使用多图,图片不能放大,想放大,有办法吗?
{% gp 1-3 %}
图1
图2
图3
{% endgp %}

Enhancement Solved v7.x

Most helpful comment

@eurusd 你好
/next/source/js/src/utils.js中修改代码如下

wrapImageWithFancyBox: function() {
    $('.content img')
      .not('[hidden]')
      // .not('.group-picture img, .post-gallery img')
      .each(function() {

注意那两个斜杠,就是把那一句注释掉,问题就解决了~

All 8 comments

+1

@eurusd 你这个功能能用?我这里简直没法用,我想多图并排都没法!!你是在post上面用的吗?

@eurusd dont understand u, write in English if not solved. If solved, close it please. Thank's!

@eurusd 你好
/next/source/js/src/utils.js中修改代码如下

wrapImageWithFancyBox: function() {
    $('.content img')
      .not('[hidden]')
      // .not('.group-picture img, .post-gallery img')
      .each(function() {

注意那两个斜杠,就是把那一句注释掉,问题就解决了~

@Maples7 如上

@chenmo1996 thank you very much :smiley:

@xuecat
themes\next\source\css\_common\components\tags\group-pictures.styl
中的样式为改为

.page-post-detail .post-body .group-picture-column {
  // float: none;
  margin-top: 10px;
  // width: auto !important;
  img { margin: 0 auto; }
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

YorksonChang picture YorksonChang  ·  3Comments

keltoy picture keltoy  ·  3Comments

Nirvanada picture Nirvanada  ·  4Comments

iTofu picture iTofu  ·  4Comments

LionWY picture LionWY  ·  3Comments