question 1: when using ele.me dropdown-menu
component, how can the style of item
be overridden?
my current state is like this (the last item
is not router-link
, so the style is different from the previous one):
the result I want:
- Link color becomes black
-
border
becomesnone
I tried to set color
and border
in .el-dropdrown-item
, but it didn"t work.
question 2: how to solve this problem through the source code?
I have often encountered this problem before. I have tried several times to find out what the style and name of a component is in the source code, but in the end, I can"t find it. I still see the style of some of the attributes shown on the right when I look at element in F12.
but when I use components that can"t see styles in element (such as dropdown-menu-item
), how can I override them with source code?