2.2.2
win10家庭版 / chrome the lastest
2.5.16
https://jsfiddle.net/mmx38qxw/706/
在将侧边栏整体改为 el-menu el-menu-item 过程中, el-menu-item 元素始终有个 padding-left: 20px 的值无法覆盖, 查看chrome的dom盒子, 是在
element.style {
padding-left: 20px;
}
中定义的, 请教如何将其覆盖掉, 高度这些el-menu-item的默认样式已经覆盖掉了, 唯独这个无解
去除el-menu-item的padding-left
el-menu-item 出现无法覆盖的 padding-left
Translation of this issue:
2.2.2
Win10 family / Chrome the lastest
2.5.16
https://jsfiddle.net/mmx38qxw/706/
In the process of changing the sidebar to el-menu el-menu-item, el-menu-item element always has a value of padding-left: 20px, which cannot be overlooked. The DOM box to see Chrome is in.
Element.style {
Padding-left: 20px;
}
What is defined in it, ask how to overlay it, the default style of these el-menu-item has been covered, only this unsolved
Removal of el-menu-item's padding-left
El-menu-item has a padding-left that can't be covered
it works, thanks a lot 忘了这茬了
solution to this should not be !important.
👎 We should avoid !important in our code
If not using !important
, may I know the solution to this?
Most helpful comment
solution to this should not be !important.