开发者

Will Paginate pagination options

开发者 https://www.devze.com 2023-01-09 14:37 出处:网络
I am trying to make the next and previous button more defin开发者_开发百科ed. Are there any predefined styles that are available to me using mislav-will_paginateI would use the pagination helper; if y

I am trying to make the next and previous button more defin开发者_开发百科ed. Are there any predefined styles that are available to me using mislav-will_paginate


I would use the pagination helper; if you need something else, in my experience you're likely doing it wrong.

So just do

<%= will_paginate @people %>

And use this generic digg style link css:

.pagination { padding: 3px; margin: 3px; } 
.pagination a { padding: 2px 5px 2px 5px; margin: 2px; border: 1px solid #aaaadd; text-decoration: none; color: #000099; } 
.pagination a:hover, 
.pagination a:active { border: 1px solid #000099; color: #000; } 
.pagination span.current { padding: 2px 5px 2px 5px; margin: 2px; border: 1px solid #000099; font-weight: bold; background-color: #000099; color: #FFF; } 
.pagination span.disabled { padding: 2px 5px 2px 5px; margin: 2px; border: 1px solid #eee; color: #ddd; }
0

精彩评论

暂无评论...
验证码 换一张
取 消