当前位置:网站首页>微信小程序 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;
}边栏推荐
- nacos配置文件发布失败,请检查参数是否正确的解决方案
- 云服务器ECS夏日省钱秘籍,这次@老用户快来领走
- How to redraw the header of CListCtrl in MFC
- Superoptimag superconducting magnet system - SOM, Som2 series
- [English grammar] Unit1 articles, nouns, pronouns and numerals
- Specification of lumiprobe reactive dye indocyanine green
- 【6.24-7.1】写作社区精彩技术博文回顾
- Native JS creates a calendar - supports mouse wheel scrolling to select months - and can be ported to any framework
- Solidity - 算术运算的截断模式(unchecked)与检查模式(checked)- 0.8.0新特性
- 赋能「新型中国企业」,SAP Process Automation 落地中国
猜你喜欢

精耕渠道共謀發展 福昕攜手偉仕佳傑開展新產品培訓大會

EasyGBS主子码流都为H.265时,切换出现花屏如何解决?

Bao, que se passe - t - il si le serveur 100 + O & M a mal à la tête? Utilisez le majordome xingyun!
![Extensive reading of the paper [film: visual reasoning with a general condition layer]](/img/69/f4ba37a7eae34a7e698127c31b0161.png)
Extensive reading of the paper [film: visual reasoning with a general condition layer]

有关 M91 快速霍尔测量仪的更多信息

Lake Shore M91快速霍尔测量仪

MySQL common graphics management tools | dark horse programmers

Lumiprobe 细胞成像研究丨PKH26细胞膜标记试剂盒

Dlib+Opencv库实现疲劳检测

Lake Shore - crx-em-hf low temperature probe station
随机推荐
Parallelism, concurrency and life cycle of threads
Summary of SQL query de duplication statistics methods
【森城市】GIS数据漫谈(一)
宝,运维100+服务器很头疼怎么办?用行云管家!
记一次 .NET 差旅管理后台 CPU 爆高分析
Bao, que se passe - t - il si le serveur 100 + O & M a mal à la tête? Utilisez le majordome xingyun!
学习笔记-JDBC连接数据库操作的步骤
【pytorch记录】模型的分布式训练DataParallel、DistributedDataParallel
241. Different Ways to Add Parentheses
Solidity - truncated and checked modes of arithmetic operations - new features of 0.8.0
ubuntu14安装MySQL并配置root账户本地与远程访问
任务:拒绝服务DoS
nacos配置文件发布失败,请检查参数是否正确的解决方案
Detailed explanation of JUnit unit test framework
Lake Shore—CRX-EM-HF 型低温探针台
MySQL common graphics management tools | dark horse programmers
使用环信提供的uni-app Demo,快速实现一对一单聊
Les canaux de culture intensive s'efforcent de développer Fu Xin et Wei Shi jiajie pour organiser une conférence de formation sur les nouveaux produits
Love business in Little Red Book
一次SQL优化,数据库查询速度提升 60 倍