HTML/CSS kaminari 分页,页面结构有重复

tinyfeng · April 03, 2018 · Last by tinyfeng replied at April 04, 2018 · 6341 hits

页面分页组件是这样的

页面结构是这样的

在 controller 里:

@xxxs = XXX.page(params[:page] || 1).per(10)

在 view 里:

<div class="turn_page>
  <%= paginate @xxxs, window: 2 %>
</div>

为什么里的内容在 font 结束了又全部重复了一次,但是里面的 a 标签却只有链接没有 html 内容

Reply to huacnlee

首先我并没有使用 Tag,我在 view 里只是用了这一行<%= paginate @xxxs, window: 2 %>

同样的页面,别人打开显示正常,只有我这里出现了 Tag,而我本地用 chrome 开隐身 tab 打开也是正常的,后面清除缓存重启之类,试了几次后,恢复正常,不明原因。

tinyfeng closed this topic. 04 Apr 14:51
You need to Sign in before reply, if you don't have an account, please Sign up first.