效果图:
让客户满意是我们工作的目标,不断超越客户的期望值来自于我们对这个行业的热爱。我们立志把好的技术通过有效、简单的方式提供给客户,将通过不懈努力成为客户在信息化领域值得信任、有价值的长期合作伙伴,公司提供的服务项目有:主机域名、虚拟主机、营销软件、网站建设、安徽网站维护、网站推广。
代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
*{
margin: 0;
padding: 0;
}
.scroll-tool{
position: relative;
height: 56px;
padding: 12px 160px;
background-color: #f9f9f9;
}
.st-con{
font-size: 14px;
line-height: 30px;
text-align: center;
padding: 12px 0;
width: 680px;
margin: 0 auto;
overflow-y: hidden;
overflow-x: auto;
white-space: nowrap;
}
.st-con .img-page{
font-size: 0;
}
a{
text-decoration: none;
}
.st-con a.selected{
background-color: #d3a12a;
}
.st-con a{
font-size: 14px;
display: inline-block;
width: 30px;
height: 30px;
color: #fff;
border-radius: 3px;
background-color: #44c6ea;
margin: 0 5px;
}
html,body{
background: #f0f0f0;
font: 14px/2 "微软雅黑";
}
header{
width: 680px;
height: 50px;
margin: 50px auto;
}
header div{
width: 100%;
height: 50px;
line-height: 50px;
text-align: center;
font-size: 30px;
color: #999;
}
</style>
</head>
<body>
<header>
<div>
简约下一页页码效果
</div>
</header>
<div class="scroll-tool">
<div class="st-con">
<div class="img-page">
<a href="javacript:void(0)" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="selected"><span>1</span></a>
<a href="javacript:void(0)" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><span>2</span></a>
<a href="javacript:void(0)" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><span>3</span></a>
<a href="javacript:void(0)" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><span>4</span></a>
<a href="javacript:void(0)" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><span>5</span></a>
<a href="javacript:void(0)" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><span>6</span></a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script>
$(function(){
$('.img-page a').on('click',function(){
$(this).addClass('selected').siblings('a').removeClass('selected');
})
})
</script>
</body>
</html>另外有需要云服务器可以了解下创新互联建站www.cdcxhl.com,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。