左:初始不能在Internet Explorer中工作 [英] left: initial doesn't work in internet explorer
本文介绍了左:初始不能在Internet Explorer中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是正确的显示(chrome):
在IE中,工具提示不会显示,就像我想要的那样。
这是错误的显示(IE)
这就是我的CSS:
.tooltipfullscreen:hover:在{
left:initial;
right:0;
transform:none;
}
解决方案
IE不支持初始
关键字,并且对它的支持仅仅添加到Microsoft Edge中。
真的没有太多一个使用初始
的点,其中剩下的属性 - 这些属性的初始值是
auto
所以只需硬编码。
In IE, the tooltip is not shown like I want.
That's the correct display (chrome):
That's the wrong display (IE)
And that's my css:
.tooltipfullscreen:hover:after {
left: initial;
right: 0;
transform: none;
}
解决方案
IE doesn't support the initial
keyword, and support for it was only just added to Microsoft Edge.
There really isn't much of a point using initial
with properties like left
— it's pretty well-known that the initial value of those properties is auto
so just hardcode that in.
这篇关于左:初始不能在Internet Explorer中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文