Element-ui navmenu height

use element-ui, under vue-cli
use menu-sider-bar
https://element.eleme.io/-sharp/en-US/component/menu-sharpside-bar
but the single line height of the list is too high, I don"t know how to lower it. The child items in
can be realized by changing the height of el-menu-item , but the parent item does not know how to modify it.
`

<el-submenu index="1">
    <template slot="title">
      <span> menu</span>
    </template>
    <el-menu-item class="sub-menu" index="1-1" >
      submenu
    </el-menu-item>
</el-submenu>

`
as above, the submenu segment can be implemented by modifying the css of class= "sub-menu", but the menu segment does not know how to do it (it cannot be implemented by modifying the css of template).
after running, the div, of class= "el-submenu__title" in the generated html has height:56px;inline-height:56px; in its css, and the height becomes shorter after canceling it, but this class will only be available after running, it is not available in the source code, and it is useless to add the relevant css to the source code.
I don"t know how to change its height

Apr.20,2021

for changing the official style of ElementUI, you can refer to my answer to this question. modify element style
for your question, I personally recommend the fourth way


F12, the actual navmenu in html is as follows:

clipboard.png

:

  1. ulclass,navmenu;
  2. liheightline-height:

clipboard.png

  1. li:

clipboard.png

clipboard.png

  1. :

clipboard.png

clipboard.png

classf12;


vuestyleelement-uicss

element-ui:./node_modules/element-ui/lib/theme-chalk/index.css60px40px

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36444-2bfe1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36444-2bfe1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?