From cbb9d1dce2698b02e4e5fdffd342ed72cfc50939 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Mon, 15 Mar 2021 16:36:25 +0800 Subject: [PATCH] 实现 h5 开发中 rem 转换 px --- layout/h5Page/cNavBar.scss | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/layout/h5Page/cNavBar.scss b/layout/h5Page/cNavBar.scss index 854c366..d1d8ebf 100644 --- a/layout/h5Page/cNavBar.scss +++ b/layout/h5Page/cNavBar.scss @@ -20,6 +20,12 @@ background-color: rgba(#F0F0F0, 0.5); transition: background-color 0s; } + .at-icon { + display: block; + } + .at-nav-bar__text { + display: none; + } } .at-nav-bar__container { width: 100%; @@ -38,6 +44,24 @@ } .c-nav-bar-right { @include position(absolute, 0 n n 0, 10); + padding: 9Px 5Px; + @include flexbox(inline, center center); + &::before { + display: block; + width: 0; + white-space: nowrap; + overflow: hidden; + font-size: 1.024rem; + font-family: iconfont; + font-style: normal; + font-weight: 400; + font-variant: normal; + line-height: 1; + vertical-align: middle; + text-transform: none; + text-rendering: auto; + content: ""; + } } .c-nav-bar-drop { @include position(absolute, n n 0 0, 10); -- Gitblit v1.9.1