当前位置:网站首页>Wechat applet navigator has a shadow after clicking. Remove the shadow effect of navigator
Wechat applet navigator has a shadow after clicking. Remove the shadow effect of navigator
2022-07-01 19:35:00 【Shimeng_ one thousand nine hundred and eighty-nine】
- Method 1: add to hover-class="none" attribute .
<navigator url="/subpkg/settings/aboutUs" hover-class="none">
<view> About us </view>
</navigator>
- Method 2 : Don't want to bother adding labels one by one , Can be global css Get rid of ( In the root directory uni.scss / wxss file ).
/* Method 1 :
background-color:none There will still be shadow effect . Don't modify opacity Properties will have 0.7 Transparent effect of
Because the system attribute is written as :
.navigator-hover {
background-color: rgba(0, 0, 0, .1);
opacity: .7;
}
*/
.navigator-hover {
background-color: transparent !important;
opacity: 1;
}
/*
Method 2 : If the level is not enough / Can't cover , You can add another layer navigator
*/
navigator.navigator-hover {
background-color: transparent !important;
opacity: 1;
}
- Method 3 : stay hover-class Properties of the add to class name .
<!-- html/wxml -->
<navigator url="/subpkg/settings/aboutUs" hover-class="noshadow">
<view> About us </view>
</navigator>
/* uni.scss/wxss */
.noshadow{
hover-class:none;
}
边栏推荐
- Enabling "new Chinese enterprises", SAP process automation landing in China
- Use the uni app demo provided by Huanxin to quickly realize one-on-one chat
- Go语言高级
- Learn MySQL from scratch - database and data table operations
- Audio and video, encoding and decoding related e-books, gadgets, packaged for free!
- 论文阅读【Learning to Discretely Compose Reasoning Module Networks for Video Captioning】
- Crunch简介、安装,使用Crunch制作密码字典
- Witness the times! "The future of Renji collaboration has come" 2022 Hongji ecological partnership conference opens live broadcast reservation
- 【To .NET】C#集合类源码解析
- Solidity - contract structure - error - ^0.8.4 NEW
猜你喜欢
从零开始学 MySQL —数据库和数据表操作
Dom4J解析XML、Xpath检索XML
音视频、编解码相关电子书、小工具,打包奉送!
Introduction to relevant processes and functions of wechat official account development
赋能「新型中国企业」,SAP Process Automation 落地中国
Native JS creates a calendar - supports mouse wheel scrolling to select months - and can be ported to any framework
数字化转型企业成功的关键,用数据创造价值
Lumiprobe free radical analysis h2dcfda instructions
pickle.load报错【AttributeError: Can‘t get attribute ‘Vocabulary‘ on <module ‘__main__‘】
What must be done in graduation season before going to Shanhai
随机推荐
Learning notes [Gumbel softmax]
Shell高级进阶
实现一个Prometheus exporter
Enabling "new Chinese enterprises", SAP process automation landing in China
Solidity - 算术运算的截断模式(unchecked)与检查模式(checked)- 0.8.0新特性
面试题 16.16. 部分排序-双指针法
狼人杀攻略:你当我好骗吗,我们相信谁!
Download (export) PDF template file (such as approval form), and report error: invalid nested tag * * * found, expected closing tag***
win10下使用msys+vs2019编译ffmpeg源码
MFC中如何重绘CListCtrl的表头
Nat penetration of gb28181
Thesis reading [distinctive late semantic graph for video capturing]
Case sharing: basic networking configuration of QinQ
【Go ~ 0到1 】 第五天 7月1 类型别名,自定义类型,接口,包与初始化函数
Werewolf killing strategy: do you think I'm easy to cheat? Who do we believe!
博途V16 获取系统时间转换成字符串
Nacos configuration file publishing failed, please check whether the parameters are correct solution
论文泛读【FiLM: Visual Reasoning with a General Conditioning Layer】
【To .NET】C#集合类源码解析
Solution and summary of Nacos startup failure