纯CSS分页代码

 <!DOCTYPE html>
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>居中分页DIV CSS  DIVCSS5在线案例演示</title>
<style>
a{ text-decoration:none}
#n{margin:10px auto; width:920px; border:1px solid #CCC;font-size:12px; line-height:30px;}
#n a{ padding:0 4px; color:#333}
/* 以上CSS与模块无关 */
.ep-pages{padding:10px 12px;clear:both;text-align:center;font-family:Arial, "\5B8B\4F53", sans-serif;font-size:14px;vertical-align:top}
.ep-pages a, .ep-pages span{display:inline-block;height:23px;line-height:23px;padding:0 8px;margin:5px 1px 0 0;background:#fff;border:1px solid #e5e5e5;overflow:hidden;vertical-align:top}
.ep-pages a:hover{background:#cc1b1b;border:1px solid #cc1b1b;text-decoration:none}
.ep-pages a, .ep-pages a:visited{color:#252525}
.ep-pages a:hover, .ep-pages a:active{color:#ffffff}
.ep-pages .current{background:#cc1b1b;border:1px solid #cc1b1b;color:#fff}
.ep-pages a.current, .ep-pages a.current:visited{color:#ffffff}
.ep-pages a.current:hover, .ep-pages a.current:active{color:#ffffff}
.ep-pages-ctrl{font-family:"\5B8B\4F53", sans-serif;font-weight:bold;font-size:16px}
.ep-pages-e5e5e5{color:#e5e5e5}
.ep-pages-all{font-size:12px;vertical-align:top}
</style>
</head>
<body>
<div class="ep-pages">
 <span class="ep-pages-e5e5e5">首页</span> <span class="ep-pages-ctrl ep-pages-e5e5e5">&lt;</span> <a href="#" target="_self" class="current">1</a> <a href="#" target="_self">2</a> <a href="#" target="_self">3</a> <span>...</span> <a href="#" target="_self" class="ep-pages-ctrl">&gt;</a> <a href="#" target="_self">尾页</a> <a href="#" target="_self" class="ep-pages-all">在本页阅读全文</a>
</div>

</body>
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
公司发展历程是指一个公司从创立至今的发展过程和重要里程碑。下面是一个用CSS样式代码展示公司发展历程的简单示例: HTML代码: ```html <div class="timeline"> <div class="event"> <div class="date">1990</div> <div class="description">公司成立</div> </div> <div class="event"> <div class="date">1995</div> <div class="description">首次实现盈利</div> </div> <div class="event"> <div class="date">2000</div> <div class="description">上市</div> </div> <div class="event"> <div class="date">2010</div> <div class="description">扩大市场份额</div> </div> <div class="event"> <div class="date">2020</div> <div class="description">进军国际市场</div> </div> </div> ``` CSS代码: ```css .timeline { display: flex; flex-direction: column; } .event { display: flex; align-items: center; margin-bottom: 20px; } .date { background-color: #ffc107; color: #ffffff; padding: 10px; border-radius: 5px; margin-right: 10px; } .description { font-size: 16px; } ``` 这段代码通过使用Flex布局创建了一个竖直排列的公司发展历程时间线。每个事件都是一个`.event`元素,包含一个显示日期的`.date`元素和一个描述的`.description`元素。日期使用了黄色的背景色,并添加了圆角样式,描述部分使用了16px的字体大小。 可以根据实际需求进一步定制样式,并添加动画效果来增添页面的吸引力。这只是一个简单的示例,您可以根据需要扩展并改进代码

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值