当前位置:网站首页>微信小程序 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;
}
边栏推荐
- 241. Different Ways to Add Parentheses
- 水产行业智能供应链管理平台解决方案:支撑企业供应链数字化,提升企业管理效益
- kubernetes命令入门(namespaces,pods)
- Bao, what if the O & M 100+ server is a headache? Use Xingyun housekeeper!
- More information about M91 fast hall measuring instrument
- [English grammar] Unit1 articles, nouns, pronouns and numerals
- Download (export) PDF template file (such as approval form), and report error: invalid nested tag * * * found, expected closing tag***
- PostgreSQL varchar[] array type operation
- 简版拼多多商品数据
- indexof和includes的区别
猜你喜欢
Dlib+opencv library for fatigue detection
原生js打造日程表-支持鼠标滚轮滚动选择月份-可以移植到任何框架中
Lake Shore低温恒温器的氦气传输线
Shell高级进阶
[go ~ 0 to 1] day 5 July 1 type alias, custom type, interface, package and initialization function
白盒加密技术浅理解
Getting started with kubernetes command (namespaces, pods)
Summary of SQL query de duplication statistics methods
Detailed explanation of JUnit unit test framework
MATLAB中subplot函数的使用
随机推荐
Lake Shore—CRX-EM-HF 型低温探针台
axure不显示元件库
Chinese and English instructions human soluble advanced glycation end products receptor (sRAGE) ELISA Kit
云服务器ECS夏日省钱秘籍,这次@老用户快来领走
商业智能BI开发和报表开发有什么本质区别?
论文阅读【Learning to Discretely Compose Reasoning Module Networks for Video Captioning】
Lumiprobe free radical analysis h2dcfda instructions
物联网平台thingsboard搭建学习记录
Redis 实现限流的三种方式
任务:拒绝服务DoS
PostgreSQL varchar[] 数组类型操作
Task: denial of service DOS
EasyGBS主子码流都为H.265时,切换出现花屏如何解决?
ECS summer money saving secret, this time @ old users come and take it away
Instagram 为何从内容共享平台变成营销工具?独立站卖家如何利用该工具?
Reading the paper [learning to discretely compose reasoning module networks for video captioning]
Extensive reading of the paper [film: visual reasoning with a general condition layer]
新版国标GB28181视频平台EasyGBS如何配置WebRTC视频流格式播放?
Bao, que se passe - t - il si le serveur 100 + O & M a mal à la tête? Utilisez le majordome xingyun!
Native JS creates a calendar - supports mouse wheel scrolling to select months - and can be ported to any framework