定位(垂直居中)跨度的内部div

时间:2020-07-10 23:36:01

标签: html css

我有3个跨度:

export * from 'foo';
export function myFunction() {}
.see-more{
    text-align: right;
    padding-right: 20px;
    display: inline-block;
}

.see-more .see-more-text{
    display: inline-block;
    padding-top: -2px;
}

.see-more .fa-angle-right{
    display: inline-block;
    margin-right:-6px;
}

这段代码的效果如下: enter image description here

我正在尝试降低直角图标,使其位于“查看更多”文本的中间,但是不幸的是,在所有尝试中,始终使整个div移动,而不是内部元素移动。有什么想法吗?

1 个答案:

答案 0 :(得分:0)

尝试在fa-angle-right CSS中使用margin-top:20px(尝试根据需要设置数字)

相关问题