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
HTML stands for Hypertext Markup Language. Nowada...
This article example shares the specific code of ...
This article shares the specific code of vue unia...
Table of contents 1. Security issues with Docker ...
First, the principle of esp8266 publishes message...
Table of contents 1. Why is JavaScript single-thr...
1. What is the cardinality? Cardinality refers to...
If you want to understand React Router, you shoul...
Copy code The code is as follows: <!--doctype ...
To improve the performance of web pages, many dev...
Table of contents Problem 1: Destruction 1. How t...
Let me start with a question: When writing an HTM...
Preface My needs are syntax highlighting, functio...
Table of contents 1.Vue.js features: 2.Observer.j...
Achieve resultsImplementation Code html <heade...