★ ページナビ(前ページ・次のページ)を画像にする
2013年7月21日現在、記事下のページナビ部分に修正が
入ったようなので、ページナビを画像にしている方は下記を参照
してください。
http://ameblo.jp/new-blue-777/entry-11577369459.html
● 概要
① 記事を指定したページの場合は、下記の様になりますが、
記事名 記事一覧 記事名
この記事のCSSを使った場合、下記の様になってしまいますので
注意してください。(記事名がなくなる)
前ページ画像 記事一覧 次ページ画像
② フォーカスは、Tabキー又は、Shift+Tabキーでフォーカス移動を
したときの状態です。
③ この記事のCSSでは、一覧ページのページナビも変わります。
一覧のページナビのみ変えたい場合は下記です。
● 記事作成中
④ ロールオーバーしたくない場合は、ロールオーバしない画像と
ロールオーバー画像を同じにすればOKです
⑤ 使用画像例(100px × 25px)
![](https://stat001.ameba.jp/user_images/20110817/20/new-blue-777/9a/14/g/o0100002511423829329.gif?caw=800)
![](https://stat001.ameba.jp/user_images/20110817/20/new-blue-777/a9/0f/g/o0100002511423868145.gif?caw=800)
![](https://stat001.ameba.jp/user_images/20110817/20/new-blue-777/6b/14/g/o0100002511423854587.gif?caw=800)
![](https://stat001.ameba.jp/user_images/20110817/20/new-blue-777/dc/ad/g/o0100002511423868144.gif?caw=800)
ボタン画像作成は、下記を利用
http://box.aflat.com/buttonmaker/
◆ ページナビを画像にする
① ページナビの画像化
/* ------------------------------------------------------- */
/* 前ページを画像に */
/* ------------------------------------------------------- */
.pagingArea .pagingPrev{
background-image:url(画像のURL);
background-repeat:no-repeat;
background-position:right center;
background-color:transparent;
border:none;
width:75px;/* 幅(調整要) */
text-indent:-8000px;
}
.pagingArea .pagingPrev:hover,.pagingArea .pagingPrev:focus{/* カーソルを乗せた時(ロールオーバー) 及び フォーカス時 */
background-image:url(画像のURL);
background-repeat:no-repeat;
background-position:right center;
background-color:transparent;
border:none;
width:75px;/* 幅(調整要) */
}
/* ------------------------------------------------------- */
/* 次ページを画像に */
/* ------------------------------------------------------- */
.pagingArea .pagingNext{
background-image:url(画像のURL);
background-repeat:no-repeat;
background-position:right center;
background-color:transparent;
border:none;
width:75px;/* 幅(調整要) */
text-indent:-8000px;
}
.pagingArea .pagingNext:hover,.pagingArea .pagingNext:focus{/* カーソルを乗せた時(ロールオーバー) 及び フォーカス時 */
background-image:url(画像のURL);
background-repeat:no-repeat;
background-position:right center;
background-color:transparent;
border:none;
width:75px;/* 幅(調整要) */
}
/* 前ページを画像に */
/* ------------------------------------------------------- */
.pagingArea .pagingPrev{
background-image:url(画像のURL);
background-repeat:no-repeat;
background-position:right center;
background-color:transparent;
border:none;
width:75px;/* 幅(調整要) */
text-indent:-8000px;
}
.pagingArea .pagingPrev:hover,.pagingArea .pagingPrev:focus{/* カーソルを乗せた時(ロールオーバー) 及び フォーカス時 */
background-image:url(画像のURL);
background-repeat:no-repeat;
background-position:right center;
background-color:transparent;
border:none;
width:75px;/* 幅(調整要) */
}
/* ------------------------------------------------------- */
/* 次ページを画像に */
/* ------------------------------------------------------- */
.pagingArea .pagingNext{
background-image:url(画像のURL);
background-repeat:no-repeat;
background-position:right center;
background-color:transparent;
border:none;
width:75px;/* 幅(調整要) */
text-indent:-8000px;
}
.pagingArea .pagingNext:hover,.pagingArea .pagingNext:focus{/* カーソルを乗せた時(ロールオーバー) 及び フォーカス時 */
background-image:url(画像のURL);
background-repeat:no-repeat;
background-position:right center;
background-color:transparent;
border:none;
width:75px;/* 幅(調整要) */
}