当前位置:网站首页>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;
}边栏推荐
- Learning notes - steps of JDBC connection database operation
- 赋能「新型中国企业」,SAP Process Automation 落地中国
- 下载(导出)pdf模板文件(比如:审批单),报错:Invalid nested tag *** found, expected closing tag ***
- DTD建模
- The use of subplot function in MATLAB
- Nacos configuration file publishing failed, please check whether the parameters are correct solution
- 线程的并行、并发、生命周期
- 【To .NET】C#集合类源码解析
- 狼人杀攻略:你当我好骗吗,我们相信谁!
- 测试自学人必看:软件测试如何找测试项目?
猜你喜欢

【To .NET】C#集合类源码解析

如何正确使用Vertx操作Redis(3.9.4带源码分析)

pickle.load报错【AttributeError: Can‘t get attribute ‘Vocabulary‘ on <module ‘__main__‘】

Instagram 为何从内容共享平台变成营销工具?独立站卖家如何利用该工具?

ddr4测试-2

XML syntax, constraints

赋能「新型中国企业」,SAP Process Automation 落地中国

Native JS creates a calendar - supports mouse wheel scrolling to select months - and can be ported to any framework

Solidity - truncated and checked modes of arithmetic operations - new features of 0.8.0

Chaos engineering platform chaosblade box new heavy release
随机推荐
ffmpeg 错误码
原生js打造日程表-支持鼠标滚轮滚动选择月份-可以移植到任何框架中
GetMessage底层机制分析
测试自学人必看:软件测试如何找测试项目?
Collation of open source protocols of open source frameworks commonly used in Web Development
案例分享:QinQ基本组网配置
Contos 7 搭建sftp之创建用户、用户组以及删除用户
241. Different Ways to Add Parentheses
English grammar_ Adjective / adverb Level 3 - precautions
Contos 7 set up SFTP to create users, user groups, and delete users
Solution and summary of Nacos startup failure
【sql优化】with as 和 临时表的区别
What must be done in graduation season before going to Shanhai
Native JS creates a calendar - supports mouse wheel scrolling to select months - and can be ported to any framework
Ffmpeg common commands (2)
【pytorch记录】自动混合精度训练 torch.cuda.amp
[go ~ 0 to 1] day 5 July 1 type alias, custom type, interface, package and initialization function
Intensive cultivation of channels for joint development Fuxin and Weishi Jiajie held a new product training conference
直播HLS协议
How to redraw the header of CListCtrl in MFC