当前位置:网站首页>The component style set by uniapp takes effect in H5 and app, but does not take effect in wechat applet. The problem is solved
The component style set by uniapp takes effect in H5 and app, but does not take effect in wechat applet. The problem is solved
2022-06-12 19:24:00 【Xiaolingzi xiaolingzi】
problem : Want to modify uview Styles of components in the component library , Want to use the depth selector >>>(/deep/) The way to modify , After modification, it is in H5 and APP Both of them are in effect , But you can't see the set style in the applet .
solve :
1. You need to use the components of custom components first / Add and data Of the same rank options attribute , Set up options:{styleIsolation: ‘shared’}
2. Get rid of style Labeled scoped attribute
3. If it still doesn't work , See if the priority is not high enough , Increase priority by adding a parent selector , Or add... After the style !important( Not recommended , Easy to affect other page styles )
边栏推荐
- liunx部署Seata(Nacos版)
- Order allocation strategy for instant delivery: from modeling and Optimization - Notes
- leetcode:5270. Minimum path cost in Grid [simple level DP]
- 国内如何下载ProxyStrike
- 一种灵活注入 Istio Sidecar 的方案探索
- leetcodeSQL:602. Friend application II: who has the most friends
- Jenkins各配置选项介绍原创
- uniapp使用阿里图标
- 5g R17 standard is frozen. What does it say?
- RT-Thread 模拟器 simulator 搭建 LVGL 的开发调试环境
猜你喜欢

WinCC7.5 SP1调整画面尺寸以适应显示分辨率的方法

Leetcodesql: count the number of students in each major

In 2021, the global fire pump drive power revenue is about $381million, and it is expected to reach $489.3 million in 2028

Meituan won the first place in fewclue in the small sample learning list! Prompt learning+ self training practice

Add, delete, modify and query mysql, common MySQL commands

vc hacon 联合编程 GenImage3Extern WriteImage
![[observation] Huawei's next generation data center](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[observation] Huawei's next generation data center "adds momentum" to Guangxi's low-carbon and high-quality development

In 2021, the global revenue of chlorinated polyvinyl chloride (CPVC) was about $1809.9 million, and it is expected to reach $3691.5 million in 2028

ISCC2022

New product launch
随机推荐
Rhca memoirs -- Introduction to cl280
MySQL数据库实验一 数据定义
5G R17标准冻结,主要讲了些啥?
编程工具下载地址
A small case with 666 times performance improvement illustrates the importance of using indexes correctly in tidb
Research Report on current market situation and investment prospect of China's tobacco RFID industry 2022-2027
DACOM G150 dual-mode earphones make sound for love and protect the healthy growth of children's hearing
vc hacon 联合编程 GenImage3Extern WriteImage
Cookie & session & kaptcha verification code
Six stone cognition: the apparent and potential speed of the brain
[5gc] Introduction to three SSC (session and service continuity) modes
uniapp使用阿里图标
Cookie & Session & kaptcha驗證碼
Standard library template learning introduction original
Mode of most elements (map, sort, random, Boyer Moore voting method)
嵌入式开发:固件工程师的6项必备技能
Kali implements port forwarding through iptables
Leetcode 1049. Weight of the last stone II
ThansmittableThreadLocal详解
RHCA回忆录---CL280介绍