1
我正在开发带有工具提示功能的粘性侧栏菜单。在Chrome和Safari中,它呈现正确,但是,工具提示显示偏离IE中心。使用CSS显示工具提示行
这里的,这似乎是导致问题的代码:
/* Vertically center tooltip content for left/right tooltips */
.tooltip-left:after, {
margin-left: 0;
margin-bottom: 0;
}
以上呈现在Chrome和Safari罚款,但不是在IE中。只有当我这样声明它在IE
/* Vertically center tooltip content for left/right tooltips */
.tooltip-left:after, {
margin-left: 0;
margin-bottom: -16px; /* different */
}
谁能提供任何意见,就如何正确地编写这一点,也许使用display: inline-block
工作?
下面是完整的Fiidle:https://jsfiddle.net/gavinfriel/jxg4th86/3/
这样做!干杯! –
不用担心。我用啤酒付款:p –
如果你曾经在贝尔法斯特,我会给你买吉尼斯! –