tab weui 页面切换_weui tabbar 切换

Html:

.weui_navbar_item.weui_bar_item_on {

color: #2196F3;

cursor: pointer;

}

患者我的

问医生

我的

问医生内容.......

我的........

jiaj.css

/*tab 切换*/

.weui_navbar_item{

position: relative;

display: block;

-webkit-box-flex: 1;

-webkit-flex: 1;

flex: 1;

padding: 6px;

text-align: center;

font-size: 15px;

/* align-items: center; */

line-height: 35px;

-webkit-tap-highlight-color: rgba(0,0,0,0);

}

.weui_navbar_item::after{

content: "";

position: absolute;

right: 0;

top: 0;

width: 1px;

bottom: 0;

border-right: 1px solid #CCCCCC;

-webkit-transform-origin: 100% 0;

transform-origin: 100% 0;

-webkit-transform: scaleX(.5);

transform: scaleX(.5);

}

.weui_navbar_item

.weui_bar_item_on {

color: #2196F3;

transition: all 0.5s ease-in;

}

example.css

.container,

.page {

position: absolute;

top: 0;

right: 0;

bottom: 0;

left: 0

}

.global_navs .cell:before,

.global_navs:after,

.global_navs:before {

border-color: #D9DBDA

}

body,

html {

height: 100%;

-webkit-tap-highlight-color: transparent

}

.page,

body {

background-color: #FBF9FE

}

.container {

overflow: hidden

}

.page {

overflow-y: auto;

-webkit-overflow-scrolling: touch

}

.hd {

padding: 2em 0

}

.page_desc {

text-align: center;

color: #888;

font-size: 14px

}

.bd.spacing {

padding: 0 15px

}

.page_title {

text-align: center;

font-size: 34px;

color: #3CC51F;

font-weight: 400;

margin: 0 15%

}

.page.button .page_title,

.page.cell .page_title {

color: #225FBA

}

.global_navs {

background-color: transparent

}

.page.article,

.page.dialog,

.page.icons,

.page.msg,

.page.toast {

background-color: #FFF

}

.global_navs .cell {

padding-top: .5em;

padding-bottom: .5em

}

.global_navs .icon_nav {

width: 28px;

height: 28px;

display: block;

margin-right: .7em

}

.page.button .bd {

padding: 0 15px

}

.page.button .button_sp_area {

padding: 10px 0;

width: 60%;

margin: 0 auto;

text-align: justify;

text-justify: distribute-all-lines;

font-size: 0

}

.page.button .button_sp_area:after {

display: inline-block;

width: 100%;

height: 0;

font-size: 0;

margin: 0;

padding: 0;

overflow: hidden;

content: "."

}

.page.cell .bd {

padding-bottom: 30px

}

.page.dialog .bd,

.page.toast .bd {

padding: 120px 15px 0

}

.page.msg .weui_msg {

padding-top: 30px

}

.page.article .page_title {

color: #DE7C23

}

.page.icons {

text-align: center

}

.page.icons .page_title {

color: #3E24BD

}

.page.icons .bd {

padding: 30px 0;

text-align: center

}

.page.icons .icon_sp_area {

padding: 10px 20px;

text-align: left

}

.page.icons i {

margin: 0 5px 10px

}

@-webkit-keyframes slideIn {

from {

-webkit-transform: translate3d(100%, 0, 0);

transform: translate3d(100%, 0, 0)

}

to {

-webkit-transform: translate3d(0, 0, 0);

transform: translate3d(0, 0, 0)

}

}

@keyframes slideIn {

from {

-webkit-transform: translate3d(100%, 0, 0);

transform: translate3d(100%, 0, 0)

}

to {

-webkit-transform: translate3d(0, 0, 0);

transform: translate3d(0, 0, 0)

}

}

@-webkit-keyframes slideOut {

from {

-webkit-transform: translate3d(0, 0, 0);

transform: translate3d(0, 0, 0)

}

to {

-webkit-transform: translate3d(100%, 0, 0);

transform: translate3d(100%, 0, 0)

}

}

@keyframes slideOut {

from {

-webkit-transform: translate3d(0, 0, 0);

transform: translate3d(0, 0, 0)

}

to {

-webkit-transform: translate3d(100%, 0, 0);

transform: translate3d(100%, 0, 0)

}

}

.page.slideIn {

-webkit-animation: slideIn .2s forwards;

animation: slideIn .2s forwards

}

.page.slideOut {

-webkit-animation: slideOut .2s forwards;

animation: slideOut .2s forwards

}

OK!tabbar 实例完成!直接拿走!

来源:https://www.cnblogs.com/baiyygynui/p/6227031.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值