gpt4 book ai didi

css - rails : Change next_page class of will_paginate gem

转载 作者:行者123 更新时间:2023-11-28 02:39:54 24 4
gpt4 key购买 nike

是否可以更改将分页 gem 的类名“next_page”?例如很容易更改 .paginate 类,但我不知道是否可以使用 'next_page'

:class - CSS class name for the generated DIV (default: "pagination")
:previous_label - default: "« Previous"
:next_label - default: "Next »"
:page_links - when false, only previous/next links are rendered (default: true)
:inner_window - how many links are shown around the current page (default: 4)
:outer_window - how many links are around the first and the last page (default: 1)
:link_separator - string separator for page HTML elements (default: single space)
:param_name - parameter name for page number in URLs (default: :page)
:params - additional parameters when generating pagination links (eg. :controller => "foo", :action => nil)
:renderer - class name, class or instance of a link renderer (default in Rails: WillPaginate::ActionView::LinkRenderer)
:container - toggles rendering of the DIV container for pagination links, set to false only when you are rendering your own pagination markup (default: true)

最佳答案

一旦您被允许更改封闭类名,更改嵌套类名是多余的,因此不提供。

使用 CSS 选择器 .pagination > .next_page 避免任何可能的名称冲突。

关于css - rails : Change next_page class of will_paginate gem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47235621/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com