当前位置:网站首页>微信小程序 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;
}边栏推荐
- English grammar_ Adjective / adverb Level 3 - precautions
- Lake Shore—OptiMag 超导磁体系统 — OM 系列
- Write it down once Net travel management background CPU Explosion Analysis
- Lake shore optimag superconducting magnet system om series
- 狼人杀攻略:你当我好骗吗,我们相信谁!
- CMU AI PhD 第一年总结
- 测试自学人必看:软件测试如何找测试项目?
- 寶,運維100+服務器很頭疼怎麼辦?用行雲管家!
- Lake Shore - crx-em-hf low temperature probe station
- [info() method in org.slf4j.logger]
猜你喜欢

Dlib+opencv library for fatigue detection

Lake Shore 连续流动低温恒温器传输线

Lumiprobe cell imaging study PKH26 cell membrane labeling kit

见证时代!“人玑协同 未来已来”2022弘玑生态伙伴大会开启直播预约

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

MATLAB中subplot函数的使用

Lumiprobe phosphide hexaethylene phosphide specification
![[go ~ 0 to 1] day 5 July 1 type alias, custom type, interface, package and initialization function](/img/1e/bed6a761f07c052e43b1e3b1701760.png)
[go ~ 0 to 1] day 5 July 1 type alias, custom type, interface, package and initialization function

Dom4J解析XML、Xpath检索XML

机械设备行业数字化供应链集采平台解决方案:优化资源配置,实现降本增效
随机推荐
The intelligent epidemic prevention system provides safety guarantee for the resumption of work and production at the construction site
Download (export) PDF template file (such as approval form), and report error: invalid nested tag * * * found, expected closing tag***
How to redraw the header of CListCtrl in MFC
torch.nn.functional.interpolate函数
Contos 7 set up SFTP to create users, user groups, and delete users
The former 4A executives engaged in agent operation and won an IPO
机械设备行业数字化供应链集采平台解决方案:优化资源配置,实现降本增效
axure不显示元件库
Ubuntu14 install MySQL and configure root account local and remote access
Solution and summary of Nacos startup failure
Facebook聊单,SaleSmartly有妙招!
AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
实现一个Prometheus exporter
Dom4j parsing XML, XPath retrieving XML
【pytorch记录】自动混合精度训练 torch.cuda.amp
Werewolf killing strategy: do you think I'm easy to cheat? Who do we believe!
任务:拒绝服务DoS
Superoptimag superconducting magnet system - SOM, Som2 series
Manufacturing SRM management system supplier all-round closed-loop management, to achieve procurement sourcing and process efficient collaboration
有关 M91 快速霍尔测量仪的更多信息