For example, there is an input box <el-input ref="mySearch" class="mySearch" size="small" placeholder="Please enter content" suffix-icon="el-icon-search" v-model="input1"> </el-input> If no custom style is added, the input box will look like this I hope so Through the developer tools of Google Chrome, find the class name of the corresponding style.el If you select child elements through CSS selectors, you cannot apply it to the elements inside the child elements. The following uses stylus syntax. The following is an incorrect way of writing: <style scoped lang="stylus" rel="stylessheet/stylus"> .mySearch .el-input__inner border-radius 20px </style> How to make it work Solution 1: You need to add a <style scoped lang="stylus" rel="stylessheet/stylus"> .mySearch /deep/ .el-input__inner border-radius 20px </style> Solution 2: Remove In general, the reason why it does not work is that this This is the end of this article about the solution to the problem of ElementUI custom CSS style not taking effect. For more relevant content about ElementUI style not taking effect, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! |
<<: Detailed steps to deploy lnmp under Docker
>>: How to remove the underline of a hyperlink using three simple examples
1. setTimeOut Print abc after 3 seconds. Execute ...
This axios package is used in the vue3 demo. For ...
This article shares the detailed steps of install...
Table of contents Prune regularly Mirror Eviction...
Apache Tomcat is an open source software that imp...
cause I recently started to refactor the project,...
This article shares the specific implementation c...
“How to make a website look high-end? Or more des...
This article shares the specific code of JavaScri...
Use JS timer to make an element to make a method ...
1. Problems encountered In the process of distrib...
I recently configured a server using Tencent Clou...
1. What is Continuous Delivery The software produ...
Table of contents 1. Anti-shake 2. Throttling 3. ...
Table of contents Preface Setting up slow query l...