css - rails : Change next_page class of will_paginate gem

标签 css ruby-on-rails ruby rubygems will-paginate

是否可以更改将分页 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/

相关文章:

css - 将 unicode 与 css 一起使用的回退

css - 在 Chrome 中按下鼠标按钮时悬停样式无法应用

ruby-on-rails - 应该达 + FactoryGirl : Can I make my tests faster?

sql-server - 从 WebUI 外部访问 Sharepoint

具有数组值的 Ruby 哈希

html - 需要帮助找到在数据表中应用 css 样式的正确位置

ruby-on-rails - 如何将 "sell"ruby​​ on rails 发送给客户端

ruby-on-rails - 具有友好 ID 的 ActiveAdmin

ruby - Ruby 中的 SingletonMethods 和 InstanceMethods 是什么

jquery - 粘性页脚 - 哪种解决方案