【问题标题】:After CSS RotateX can't click on links or inputsCSS RotateX 后无法点击链接或输入
【发布时间】:2013-10-07 14:31:48
【问题描述】:

好的,我已经对这个问题做了一个小题大做。 http://plnkr.co/edit/CUkOlK

起初我虽然 zindex 搞砸了,但经过并查看它们之后它们似乎都很好,在 firebug 中将输入 zindex 更改为 9999 仍然没有,它是 rotateX 所做的还是我的 JavaScript 所做的。

【问题讨论】:

    标签: css angularjs z-index


    【解决方案1】:

    您的问题是当您将 Z-Index 设置为 -1 时,它上面的任何东西都变得无法选择。我将其更改为 0 并且链接现在可以使用!

    {LINE 73 style.css}

    /* -- general styles, including Y axis rotation -- */
        .front {
            z-index: 0;
            width: inherit;
            height: inherit;
            -webkit-transform: rotateX(0deg) rotateY(0deg);
            -webkit-transform-style: preserve-3d;
            -webkit-backface-visibility: hidden;
            -moz-transform: rotateX(0deg) rotateY(0deg);
            -moz-transform-style: preserve-3d;
            -moz-backface-visibility: hidden;
            /* -- transition is the magic sauce for animation -- */
            -o-transition: all .4s ease-in-out;
            -ms-transition: all .4s ease-in-out;
            -moz-transition: all .4s ease-in-out;
            -webkit-transition: all .4s ease-in-out;
            transition: all .4s ease-in-out;
        }
    

    【讨论】:

    • 嗯,这很容易......在我的头撞到墙上一天多之后......我不知道是这样......感谢它......
    • 是的,我不久前也遇到了同样的问题,我有一个标签从另一个 div 下方滑出,所有链接都被禁用。 css 有时会很奇怪
    猜你喜欢
    • 1970-01-01
    • 2017-10-06
    • 2013-09-02
    • 2021-07-02
    • 1970-01-01
    • 2021-04-02
    • 2015-10-13
    • 1970-01-01
    相关资源
    最近更新 更多