当前位置:网站首页>微信小程序 navigator点击后有阴影 ,去掉navigator阴影效果
微信小程序 navigator点击后有阴影 ,去掉navigator阴影效果
2022-07-01 18:45:00 【Shimeng_1989】
- 方法1: 添加 hover-class="none" 属性 。
<navigator url="/subpkg/settings/aboutUs" hover-class="none">
<view>关于我们</view>
</navigator>
- 方法二:不想麻烦一个个标签加,可以全局 css 去掉 (根目录下的uni.scss / wxss文件)。
/* 方法一:
background-color:none 依旧会有阴影效果。不修改opacity属性会有 0.7的透明效果
因为系统属性写法为:
.navigator-hover {
background-color: rgba(0, 0, 0, .1);
opacity: .7;
}
*/
.navigator-hover {
background-color: transparent !important;
opacity: 1;
}
/*
方法二:如果层级不够/覆盖不了,可以再添加一层 navigator
*/
navigator.navigator-hover {
background-color: transparent !important;
opacity: 1;
}- 方法三:在 hover-class 属性中 添加 class 名。
<!-- html/wxml -->
<navigator url="/subpkg/settings/aboutUs" hover-class="noshadow">
<view>关于我们</view>
</navigator>/* uni.scss/wxss */
.noshadow{
hover-class:none;
}边栏推荐
- 【pytorch记录】模型的分布式训练DataParallel、DistributedDataParallel
- transform + asm资料
- [pytorch record] distributed training dataparallel and distributeddataparallel of the model
- Lake Shore低温恒温器的氦气传输线
- 寶,運維100+服務器很頭疼怎麼辦?用行雲管家!
- Manufacturing SRM management system supplier all-round closed-loop management, to achieve procurement sourcing and process efficient collaboration
- web开发常用的开源框架的开源协议整理
- M91 fast hall measuring instrument - better measurement in a shorter time
- 【To .NET】C#集合类源码解析
- 如何正确使用Vertx操作Redis(3.9.4带源码分析)
猜你喜欢

nacos启动失败问题解决与总结

CDGA|从事通信行业,那你应该考个数据管理证书

Introduction to relevant processes and functions of wechat official account development

论文阅读【Discriminative Latent Semantic Graph for Video Captioning】

AAAI2020: Real-time Scene Text Detection with Differentiable Binarization

C-end dream is difficult to achieve. What does iFLYTEK rely on to support the goal of 1billion users?

M91 fast hall measuring instrument - better measurement in a shorter time

SuperOptiMag 超导磁体系统 — SOM、SOM2 系列

Dom4J解析XML、Xpath检索XML

Solidity - truncated and checked modes of arithmetic operations - new features of 0.8.0
随机推荐
How to solve the problem of splash screen when the main and sub code streams of easygbs are h.265?
Bao, what if the O & M 100+ server is a headache? Use Xingyun housekeeper!
Lean thinking: source, pillar, landing. I understand it after reading this article
研究了11种实时聊天软件,我发现都具备这些功能…
Lumiprobe cell imaging study PKH26 cell membrane labeling kit
web开发常用的开源框架的开源协议整理
白盒加密技术浅理解
Write it down once Net travel management background CPU Explosion Analysis
【6.24-7.1】写作社区精彩技术博文回顾
nacos配置文件发布失败,请检查参数是否正确的解决方案
Parallelism, concurrency and life cycle of threads
241. Different Ways to Add Parentheses
测试自学人必看:软件测试如何找测试项目?
Learning notes - steps of JDBC connection database operation
The former 4A executives engaged in agent operation and won an IPO
有关 M91 快速霍尔测量仪的更多信息
PostgreSQL varchar[] 数组类型操作
Helium transmission line of lake shore cryostat
Witness the times! "The future of Renji collaboration has come" 2022 Hongji ecological partnership conference opens live broadcast reservation
Junit单元测试框架详解