css实现⼿机端导航栏左右滑动<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>test</title>
<style media="screen">
.tab-head{
list-style-type: none;
display:-webkit-box;
display:-webkit-flex;
display:-ms-flexbox;
display:flex;
-webkit-flex-wrap:nowrap;
-ms-flex-wrap:nowrap;
flex-wrap:nowrap;
-webkit-box-pack:justify;
-webkit-justify-content:space-between;
-ms-flex-pack:justify;
justify-content:space-between;
background:#FF4878;
padding:0;
overflow:auto;
}
.tab-head-item{
-webkit-box-flex:1;
-webkit-flex:1 0 auto;
-ms-flex:1 0 auto;
flex:1 0 auto;
color:white;
padding:0 5px;
}
</style>
</head>
<body>
<ul class="tab-head">
<li class="tab-head-item">兴趣爱好</li>
<li class="tab-head-item">兴趣爱好</li>
<li class="tab-head-item">兴趣爱好</li>
<li class="tab-head-item">兴趣爱好</li>
<li class="tab-head-item">兴趣爱好</li>
<li class="tab-head-item">兴趣爱好</li>
html手机网站<li class="tab-head-item">兴趣爱好</li>
<li class="tab-head-item">兴趣爱好</li>
<li class="tab-head-item">兴趣爱好</li>
<li class="tab-head-item">兴趣爱好</li>
<li class="tab-head-item">兴趣爱好</li>
</ul>
</body>
</html>
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论