下午好!我有一个页码列表。看起来像上面的图片。左/右箭头必须与数字在同一行。display:inline-block 试过没用
<div class="page">
<div class="paginate">
<span class="icons">chevron_left</span>
<ul>
<li v-for="(item, index) in numbers" :key="item+'page'">{{index+1}}</li>
</ul>
<span class="icons">chevron_right</span>
</div>
</div>
css
.paginate{
display: inline-block;
max-width: 250px;
ul{
list-style: none;
padding: 0;
margin: 0;
display: flex;
overflow: hidden;
}
li{
color: #264348;
float: left;
padding: 8px 16px;
text-decoration: none;
// border: 1px solid #d2d7d3;
margin: 0 3px;
display: flex;
cursor: pointer;
}
span{
cursor: pointer;
}
}
0 个回答