html css 分页样式,css中分页样式

css中分页样式

css分页样式的设置,我们可以采用ul+li来实现,设置li标签float为left,让它们排列在一行,再设置li标签里面的a标签样式。

具体实现如下:

部分css代码解释#model14 ul {

padding-inline-start: 0 !important;

/* 设置ul的开头距离为零必面设置自动居中时影响美观  */

}

#model14 li:first-child {

margin-left: 0;

/*  li:first-child可设置第一个li元素的样式,第二个第三个同。 */

}

全部代码html>

a{

text-decoration: none;

}

#arrowup-center {

display: table;

height: 16px;

margin: 0 auto;

}

#model14 ul {

padding-inline-start: 0 !important;

}

#model14 li:first-child {

margin-left: 0;

}

#model14 {

float: left;

width: 1100px;

text-align: center;

margin-top: 500px;

}

#model14 li {

position: relative;

float: left;

list-style: none;

margin-left: 31px;

}

#model14 li.active a {

font-size: 16px;

color: #2699fb;

}

#model14 li a {

font-size: 16px;

color: #bce0fd;

}

li a img {

margin-top: -3px;

}

  •                             %E7%BF%BB%E9%A1%B5-%E4%B8%8A%E4%B8%80%E9%A1%B5.png

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  •                             %E7%BF%BB%E9%A1%B5-%E4%B8%8B%E4%B8%80%E9%A1%B5.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值
>