페이징 디자인을 좀 바꾸고 싶은데..
본문

기본 게시판에 페이징 디자인을 아래처럼 수정하고싶은데..
어느 파일을 수정해야 하나요?
답변 1
/lib/common.lib.php 파일에서 페이징함수 수정.
// 한페이지에 보여줄 행, 현재페이지, 총페이지수, URL
function get_paging($write_pages, $cur_page, $total_page, $url, $add="")
{
...
...
}
default.css 파일 수정.
/* 페이징 */
.pg_wrap {clear:both;margin:0 0 20px;padding:20px 0 0;text-align:center}
.pg {}
.pg_page, .pg_current {display:inline-block;padding:0 8px;height:25px;color:#000;letter-spacing:0;line-height:2.2em;vertical-align:middle}
.pg a:focus, .pg a:hover {text-decoration:none}
.pg_page {background:#e4eaec;text-decoration:none}
.pg_start, .pg_prev {/* 이전 */}
.pg_end, .pg_next {/* 다음 */}
.pg_current {display:inline-block;margin:0 4px 0 0;background:#333;color:#fff;font-weight:normal}
부트스트랩을 이용한 방법도 있습니다.
답변을 작성하시기 전에 로그인 해주세요.