Now many mobile phones have the function of switching the tab bar at the bottom. I happened to have a similar function recently. Without further ado, let's go straight to the code. First look at the effect picture CSS Styles *{ 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 ap { 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; } Page Code <%--Bottom 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">Home page recommendation</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 ">My recommendations</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 ">My benefits</p> </a> </li> </ul> This is the end of this article about how to implement the bottom tapbar with CSS. For more relevant CSS bottom tapbar content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! |
>>: MySQL extracts Json internal fields and dumps them as numbers
Table of contents Docker Basic Concepts Docker in...
1. Online Text Generator BlindTextGenerator: For ...
Seamless carousel is a very common effect, and it...
CSS3 syntax: (1rem = 100px for a 750px design) @m...
I have been playing around with charts for a whil...
You need to apply CSS to div or span at the same t...
Syntax format: row_number() over(partition by gro...
Recently, when using element table, I often encou...
Using Nginx's proxy_cache to build a cache se...
This article example shares the specific code of ...
Table of contents need: Problems encountered: sol...
view: Views in MySQL have many similarities with ...
Table of contents 1. React Basic Usage Notable Fe...
Table of contents 1. Common function classificati...
HTML reuse is a term that is rarely mentioned. Tod...