当前位置:网站首页>微信小程序 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;
}边栏推荐
- Digital business cloud: from planning to implementation, how does Minmetals Group quickly build a new pattern of digital development?
- B2B e-commerce platform solution for fresh food industry to improve the standardization and transparency of enterprise transaction process
- Specification of lumiprobe reactive dye indocyanine green
- Lake Shore continuous flow cryostat transmission line
- Lake Shore—CRX-EM-HF 型低温探针台
- Lumiprobe free radical analysis h2dcfda instructions
- [live broadcast appointment] database obcp certification comprehensive upgrade open class
- Learning notes - steps of JDBC connection database operation
- 【英语语法】Unit1 冠词、名词、代词和数词
- Go Language Advanced
猜你喜欢

数字化转型企业成功的关键,用数据创造价值

正则表达式=Regex=regular expression

Solution of intelligent supply chain management platform in aquatic industry: support the digitalization of enterprise supply chain and improve enterprise management efficiency

sql查询去重统计的方法总结

如何正确使用Vertx操作Redis(3.9.4带源码分析)

Instagram 为何从内容共享平台变成营销工具?独立站卖家如何利用该工具?

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

Solution and summary of Nacos startup failure

Dom4j parsing XML, XPath retrieving XML

Chaos engineering platform chaosblade box new heavy release
随机推荐
How to redraw the header of CListCtrl in MFC
Write it down once Net travel management background CPU Explosion Analysis
Dom4j parsing XML, XPath retrieving XML
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
Enabling "new Chinese enterprises", SAP process automation landing in China
web开发常用的开源框架的开源协议整理
云服务器ECS夏日省钱秘籍,这次@老用户快来领走
有关 M91 快速霍尔测量仪的更多信息
Solidity - contract structure - error - ^0.8.4 NEW
Solution and summary of Nacos startup failure
Solidity - 合约结构 - 错误(error)- ^0.8.4版本新增
CMU AI PhD 第一年总结
智慧防疫系统为建筑工地复工复产提供安全保障
Lumiprobe free radical analysis h2dcfda instructions
【Go ~ 0到1 】 第四天 6月30 defer,结构体,方法
CDGA|从事通信行业,那你应该考个数据管理证书
PostgreSQL varchar[] 数组类型操作
nacos配置文件发布失败,请检查参数是否正确的解决方案
原生js打造日程表-支持鼠标滚轮滚动选择月份-可以移植到任何框架中