翻页条

翻页条.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>翻页条</title>
    <link rel="stylesheet" type="text/css" href="fyt.css" />

</head>
<body>
<div class="DOX">
    <div class="box1"><a href="#">上一页</a></div>
    <div class="box2"><a href="#">1</a></div>
    <div class="box3"><a href="#">2</a></div>
    <div class="box4"><a href="#">3</a></div>
    <div class="box5"><a href="#">4</a></div>
    <div class="box6">...</div>
    <div class="box7"><a href="#">17</a></div>
    <div class="box8"><a href="#">18</a></div>
    <div class="box9"><a href="#">19</a></div>
    <div class="box10"><a href="#">20</a></div>
    <div class="box11"><a href="#">下一页</a></div>


</div>
</body>
</html>

fyt.css(ps:外部样式)

*{
    margin: 0;
    padding: 0;
}

.DOX{
   width: 964px;
    height: 42px;
    border: 1px solid black;
    margin: 250px auto;
}

.box1{
    width: 78px;
    height: 32px;
    background-color: #ff6600;
    margin-left: 200px;
    margin-top: 5px;
    display: inline-block;
}
.box1 a{
    display: block;
    font-family: '微软雅黑';
    font-size: 12px;
    text-align: center;
    padding: 5px 0;
    text-decoration: none;
    color: black;
}

.box2,.box3,.box4,.box5,.box7,.box8,.box9,.box10{
    width: 35px;
    height: 32px;
    background-color: #ff6600;
    margin-top: 5px;
    display: inline-block;
}

.box2 a,.box3 a,.box4 a,.box5 a,.box7 a,.box8 a,.box9 a,.box10 a{
    display: block;
    font-family: '微软雅黑';
    font-size: 12px;
    text-align: center;
    padding: 5px 10px;
    text-decoration: none;
    color: black;
}
.box6{
    display: inline-block;
}
.box11{
   width: 78px;
    height: 32px;
    background-color: #ff6600;
    margin-top: 5px;
    display: inline-block;
}
.box11 a{
    display: block;
    font-family: '微软雅黑';
    font-size: 12px;
    text-align: center;
    padding: 5px 0;
    text-decoration: none;
    color: black;
}
.box1 a:hover,.box2 a:hover,.box3 a:hover,.box4 a:hover,.box5 a:hover,.box7 a:hover,.box8 a: hover,.box9 a:hover,.box10 a:hover,.box11 a:hover{
    background-color: red;
}
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 第一部分 HTML&CSS整理答案 1. 什么是HTML5? 答:HTML5是最新的HTML标准。 注意:讲述HT...
    kismetajun阅读 27,917评论 1 45
  • 问答题47 /72 常见浏览器兼容性问题与解决方案? 参考答案 (1)浏览器兼容问题一:不同浏览器的标签默认的外补...
    _Yfling阅读 13,865评论 1 92
  • 学会使用CSS选择器熟记CSS样式和外观属性熟练掌握CSS各种选择器熟练掌握CSS各种选择器熟练掌握CSS三种显示...
    七彩小鹿阅读 6,366评论 2 66
  • 对于现在的我什么更重要,什么最重要?挣钱更重要,因为处在中年阶段的我(虽然一直不愿意承认自己已经到了中年,还以为自...
    最好的安排007阅读 153评论 0 0
  • 她正在客厅拖地,他回来了。 我拖,我来拖,他说。他把公文包放在鞋架上,脱去皮鞋,换上拖鞋,走到她身边,...
    3e1094b2ef7b阅读 216评论 0 0