当前位置:网站首页>微信小程序 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;
}边栏推荐
- Chaos engineering platform chaosblade box new heavy release
- 从零开始学 MySQL —数据库和数据表操作
- Detailed explanation of JUnit unit test framework
- Dom4J解析XML、Xpath检索XML
- XML语法、约束
- ECS summer money saving secret, this time @ old users come and take it away
- uni-app微信小程序一键登录获取权限功能
- Extensive reading of the paper [film: visual reasoning with a general condition layer]
- Solidity - contract structure - error - ^0.8.4 NEW
- Methods of finding various limits
猜你喜欢

C-end dream is difficult to achieve. What does iFLYTEK rely on to support the goal of 1billion users?
![[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

Junit单元测试框架详解

【森城市】GIS数据漫谈(一)

从零开始学 MySQL —数据库和数据表操作

Shell高级进阶

精耕渠道共谋发展 福昕携手伟仕佳杰开展新产品培训大会

Bao, que se passe - t - il si le serveur 100 + O & M a mal à la tête? Utilisez le majordome xingyun!
![[to.Net] C set class source code analysis](/img/59/4c7b910bc6505e5f81015ce80812fc.png)
[to.Net] C set class source code analysis

Dlib+Opencv库实现疲劳检测
随机推荐
uni-app微信小程序一键登录获取权限功能
Lake shore M91 fast hall measuring instrument
Dom4j parsing XML, XPath retrieving XML
Ubuntu14 install MySQL and configure root account local and remote access
赋能「新型中国企业」,SAP Process Automation 落地中国
Dlib+Opencv库实现疲劳检测
PMP是被取消了吗??
数字化转型企业成功的关键,用数据创造价值
[pytorch record] automatic hybrid accuracy training torch cuda. amp
Boost the development of digital economy and consolidate the base of digital talents - the digital talent competition was successfully held in Kunming
【org.slf4j.Logger中info()方法】
【To .NET】C#集合类源码解析
数商云:从规划到落地,五矿集团如何快速构建数字化发展新格局?
nacos配置文件发布失败,请检查参数是否正确的解决方案
商业智能BI开发和报表开发有什么本质区别?
PostgreSQL varchar[] array type operation
Chaos engineering platform chaosblade box new heavy release
Contos 7 搭建sftp之创建用户、用户组以及删除用户
Lake shore optimag superconducting magnet system om series
Download (export) PDF template file (such as approval form), and report error: invalid nested tag * * * found, expected closing tag***