Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎样覆盖原有样式 #1477

Closed
chao-hua opened this issue Nov 30, 2016 · 3 comments
Closed

怎样覆盖原有样式 #1477

chao-hua opened this issue Nov 30, 2016 · 3 comments

Comments

@chao-hua
Copy link

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的基础上怎么合理的进行处理,谢谢了。

@ryannan
Copy link

ryannan commented Nov 30, 2016

.el-input input border-radius: 50%

@jikkai
Copy link
Contributor

jikkai commented Nov 30, 2016

#377

@Leopoldthecoder
Copy link
Contributor

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants