最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

css如何实现底部tapbar栏效果

来源:动视网 责编:小采 时间:2020-11-02 22:15:36
文档

css如何实现底部tapbar栏效果

css如何实现底部tapbar栏效果:首先我们来看一下实现效果:css代码:*{ margin: 0; padding: 0; text-decoration: none; list-style: none; } .foot { width: 100%; height: 68px; background: #FFFFFF; position: fixed; bottom: 0;
推荐度:
导读css如何实现底部tapbar栏效果:首先我们来看一下实现效果:css代码:*{ margin: 0; padding: 0; text-decoration: none; list-style: none; } .foot { width: 100%; height: 68px; background: #FFFFFF; position: fixed; bottom: 0;


首先我们来看一下实现效果:

css代码:

*{
 margin: 0;
 padding: 0;
 text-decoration: none;
 list-style: none;

 }
 .foot {
 width: 100%;
 height: 68px;
 background: #FFFFFF;
 position: fixed;
 bottom: 0;
 display: flex;
 justify-content: space-around;
 z-index: 999;
 /*line-height: 20px;*/
 }

 .foot li {
 height: 100%;
 }

 .foot li a {
 display: block;
 width: 100%;
 height: 100%;
 /* color: #979797;*/
 }

 .foot li a img {
 /*display: block;*/
 width: 26px;
 height: 26px;
 margin-top: 10px;
 }

 .foot li a p {
 font-size: 12px;
 width: 100%;
 text-align: center;
 /* color: #979797;*/
 margin-top: 7px;
 }
 .botm-title{
 color: #979797;
 }

 .actives {
 color: #5C91FA;
 }
 .xz-img{
 text-align: center;
 }

html代码:

<%--底部tapbar--%>
 <ul class="foot">
 <li class="Imgbox" img="/images/tuiJianCus/index-wxz-icon.png" data-img="/images/tuiJianCus/index-xz-icon.png">
 <a href="/views/tuiJianCus/index.jsp">
 <div class="xz-img">
 <img src="/images/tuiJianCus/index-wxz-icon.png" />
 </div>

 <p class="botm-title">首页推荐</p>
 </a>
 </li>
 <li class="Imgbox" img="/images/tuiJianCus/tuijiang-wxz-icon.png" data-img="/images/tuiJianCus/tuijiang-xz-icon.png">
 <a href="/views/tuiJianCus/tuijian_speed.jsp">
 <div class="xz-img">
 <img src="/images/tuiJianCus/tuijiang-xz-icon.png" />
 </div>

 <p class="botm-title actives ">我的推荐</p>
 </a>
 </li>
 <li class="Imgbox" img="/images/tuiJianCus/my-wxz-icon.png" data-img="/images/tuiJianCus/my-xz-icon.png">
 <a href="/views/tuiJianCus/usercenter.jsp">
 <div class="xz-img">
 <img src="/images/tuiJianCus/my-wxz-icon.png" />
 </div>

 <p class="botm-title ">我的福利</p>
 </a>
 </li>
 </ul>

推荐教程:CSS入门基础教程

文档

css如何实现底部tapbar栏效果

css如何实现底部tapbar栏效果:首先我们来看一下实现效果:css代码:*{ margin: 0; padding: 0; text-decoration: none; list-style: none; } .foot { width: 100%; height: 68px; background: #FFFFFF; position: fixed; bottom: 0;
推荐度:
标签: 如何 实现 效果
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top