Element: 怎样覆盖原有样式

Created on 30 Nov 2016  ·  3Comments  ·  Source: ElemeFE/element

ElementUI version

OS/Browers version

Vue version

Reproduction Link



Steps to reproduce

What is Expected?

What is actually happening?

遇到很多次需要修改组件样式的地方,无论加 css, id, !important等都无法修改。
e.g:
el-input的 border-radius就不能覆盖。
请帮我看下这类问题,在不改变index.css的基础上怎么合理的进行处理,谢谢了。

Most helpful comment

377

All 3 comments

.el-input input border-radius: 50%

377

首先,确认你的 CSS 选择器选中了需要修改的元素:http://jsfiddle.net/leopoldthecuber/31vyxpve/

其次,如果是 scoped 的问题,请参考楼上的链接。

Was this page helpful?
0 / 5 - 0 ratings