<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="../../js/bootstrap/css/bootstrap.min.css">
<style type="text/css">
.tabs {
width: 100%;
border-bottom: 1px solid #20eeff;
height: 50px;
overflow: hidden;
}
.tabs-lines {
width: auto;
margin: auto;
position: relative;
height: 100%;
white-space: nowrap;
overflow: visible;
}
.tab-item {
cursor: pointer;
display: inline-block;
height: 50px;
margin-right: 20px;
text-align: center;
color: #333;
font-size: 16px;
}
.tab-wrap {
display: inline-block;
width: 90%;
margin-left: 20px;
line-height: 50px;
height: 50px;
position: relative;
overflow: hidden;
}
.tab-button {
display: inline-block;
background: transparent;
border: none;
width: 40px;
height: 50px;
line-height: 50px;
color: #ccc;
cursor: pointer;
vertical-align: top;
outline: none;
cursor: not-allowed;
}
.tab-button-active {
color: #20eeff;
cursor: pointer;
}
.tab-checked {
color: #20eeff;
border-bottom: 6px solid #1DA9C5;
}
.tab-item span {
display: inline-block;
}
.tab-content {
margin-top: 20px;
}
</style>
</head>
<body>
<div class="tabs">
<div class="tab-wrap">
<div class="tabs-lines">
</div>
</div>
<button id="left" class="tab-button">
<span class="glyphicon glyphicon glyphicon-triangle-left"></span>
文本自适应 某宽度 超出后实现翻页
最新推荐文章于 2022-12-26 10:36:37 发布