Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 jstree 上的 CSS 中使用 margin-top 如下:
.jstree li a { color:rgb(80,80,80); font-size:130%; vertical-align:middle; margin-top:10px; }
但是,jstree 扩展图标(右向箭头)比元素对齐得更高,如下所示:来自另一个问题
如何让图标与元素文本对齐?
尝试添加这种样式,
.jstree-default .jstree-no-dots .jstree-closed > ins { background-position:0 4px; }