【问题标题】:left: initial doesn't work in internet explorer左:初始在 Internet Explorer 中不起作用
【发布时间】:2015-11-18 22:43:30
【问题描述】:

在 IE 中,工具提示没有像我想要的那样显示。

这是正确的显示(chrome):

这是错误的显示(IE)

这就是我的 CSS:

.tooltipfullscreen:hover:after {
    left: initial;
    right: 0;
    transform: none;
}

【问题讨论】:

    标签: html css internet-explorer


    【解决方案1】:

    IE 不支持 initial 关键字,并且对它的支持只是刚刚添加到 Microsoft Edge 中。

    initialleft 之类的属性一起使用确实没有多大意义——众所周知,这些属性的初始值为auto,所以只需将其硬编码即可。

    【讨论】:

    • 就像您使用 transform: none 而不是 transform: initial 所做的那样。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-07
    • 2015-03-16
    • 2012-05-06
    • 2011-06-02
    • 2015-12-17
    • 2013-04-30
    相关资源
    最近更新 更多