runxinzhi.com
首页
百度搜索
一个分页栏的样式
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>分页栏</title> <style type="text/css"> /* Page CSS */ body, html { background: #333; } body { padding: 1em; } h1 { color: #DDD; font-size: 2em; } .back { color: #DDF; display: block; margin: 0 auto; padding: 0.5em; } #wrapper { border: 1px solid #999; background: #FFF; padding: 1em; text-align: center; 500px; } /* Widget CSS */ .audible { left: -999em; position: absolute; } ul { display: inline; position: relative; } li { border- 0; display: inline; margin: 0 2px; } li a, .prev, .next { border: 1px solid #EEE; color: #369; padding: 2px 5px; text-decoration: none; } li a:hover, a:hover .prev, a:hover .next, li a:focus, a:focus .prev, a:focus .next { background: #0063DC; color: #FFF; border-color: #FFF; } .prev { position: absolute; left: -7em; top: -3px; } .prev:before { content: "← "; } .next { position: absolute; right: -5em; top: -3px; } .next:after { content: " →"; } p { border: 1px solid #EEE; color: #FF0084; display: inline; padding: 2px 4px; } ul, li, a, p { /** * @HACK: The `ul` needs "layout" in IE. */ _zoom: 1; } /** * @HACK: The `.prev` and `.next` spans apparently ignore the * link's padding in IE. The left/right positions also * ought be adjusted, since they don't get the generated * arrows. */ .prev, .next { _top: 0px; } .prev { _left: -5em; } .next { _right: -4em; } </style> </head> <body> <div id="wrapper"> <p id="paginglabel" class="audible">Example Pagination</p> <ul role="navigation" aria-labelledby="paginglabel"> <li><a href="#page1"><span class="audible">Example Page</span>1</a></li> <li><a href="#page2" rel="prev"><span class="prev">Previous<span class="audible">: Example Page</span></span>2</a></li> <li><p><span class="audible">You're currently reading Example page </span>3</p></li> <li><a href="#page4" rel="next"><span class="next">Next<span class="audible">: Example Page</span></span>4</a></li> <li><a href="#page5"><span class="audible">Example Page </span>5</a></li> </ul> </div> </body> </html>
运行代码
机器瞎学/数据掩埋/模式混淆/人工智障/深度遗忘/神经掉线/计算机幻觉/专注单身二十五年
相关阅读:
jquery源码解读 (摘自jQuery源码分析系列图书(pdf)) 持续更新
jquery源码学习
判断浏览器是ie9座特殊处理
js继承
引入flash
IE7下面踩得坑
导航栏对应相应的模块,可点击索引和滚动索引到需要到达的位置
java的eclipse的使用
弹窗在大屏上居中对齐,在小屏上被挡住解决方案
左侧菜单栏,有对个li对应一个content
原文地址:https://www.cnblogs.com/rubylouvre/p/2000039.html
最新文章
hihoCoder-1049-后序遍历
hihoCoder-1089-Floyd
hihoCoder-1066-无间道之并查集
BZOJ-2140: 稳定婚姻 (tarjan强连通分量)
BZOJ-1854: [Scoi2010]游戏 (冰茶几)
BZOJ-1407: [Noi2002]Savage (扩展欧几里得)
BZOJ-1898: [Zjoi2005]Swamp 沼泽鳄鱼 (递推+矩阵快速幂)
BZOJ-2763: [JLOI2011]飞行路线 (SPFA分层图)
BZOJ-2662: [BeiJing wc2012]冻结 (SPFA分层图)
BZOJ-2257: [Jsoi2009]瓶子和燃料 (中国剩余定理)
热门文章
BZOJ3288 Mato矩阵
BZOJ2314 士兵的放置
BZOJ3053 The Closest M Points
BZOJ2223 [Coci 2009]PATULJCI
BZOJ1074 [SCOI2007]折纸origami
BZOJ3850 ZCC Loves Codefires
BZOJ3165 [Heoi2013]Segment
BZOJ2435 [Noi2011]道路修建
BZOJ1027 [JSOI2007]合金
BZOJ3223 Tyvj 1729 文艺平衡树
Copyright © 2020-2023
润新知