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
In web page production, input and img are often pl...
Table of contents 1. New usage of watch 1.1. Watc...
Table of contents 1. Basic Concepts 1.1 Two kinds...
This article example shares the specific code of ...
Adding/removing classes to elements is a very com...
ContentsHyperledger fabric1.4 environment setup u...
Preface For tree-structured data in the database,...
In the front-end layout process, it is relatively...
Many people also asked me what books I read when ...
I would like to ask a question. In Dreamweaver, I...
Nowadays, whether you are on the sofa at home or ...
1: Introduction to syslog.conf For different type...
Pseudo-arrays and arrays In JavaScript, except fo...
need: The official website's resource server ...
In order to speed up the parsing of the website, ...