Pointers 光标:指针不在';不能在透明的触发器覆盖上工作?

Pointers 光标:指针不在';不能在透明的触发器覆盖上工作?,pointers,overlay,internet-explorer-10,transparent,Pointers,Overlay,Internet Explorer 10,Transparent,我对IE10中的光标有问题有什么想法吗?它在IE10中根本没有出现 你的方法似乎有点过于复杂了。请允许我建议一种更直接的方法。我已经测试了这个,以确保它在IE中运行良好 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Hover-Fading Buttons</title> <style&g

我对IE10中的光标有问题有什么想法吗?它在IE10中根本没有出现


你的方法似乎有点过于复杂了。请允许我建议一种更直接的方法。我已经测试了这个,以确保它在IE中运行良好

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Hover-Fading Buttons</title>
        <style>
            .button {
                width: 100px;
                height: 100px;
                display: block;
                position: relative;
            }
            .button img {
                border: 0;
                width: 100%;
                top: 0; left: 0;
                position: absolute;
                transition: opacity .5s;
            }
            .button:hover .default {
                opacity: 0;
            }
        </style>
    </head>
    <body>
        <a class="button" href="#">
            <img class="overlay" src="http://translationgames.org/images/button1overlay.png" alt="Translation games">
            <img class="default" src="http://translationgames.org/images/button1.png" alt="Translation games">
        </a>
    </body>
</html>

我希望这对你有所帮助。

你的方法似乎有点过于复杂了。请允许我建议一种更直接的方法。我已经测试了这个,以确保它在IE中运行良好

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Hover-Fading Buttons</title>
        <style>
            .button {
                width: 100px;
                height: 100px;
                display: block;
                position: relative;
            }
            .button img {
                border: 0;
                width: 100%;
                top: 0; left: 0;
                position: absolute;
                transition: opacity .5s;
            }
            .button:hover .default {
                opacity: 0;
            }
        </style>
    </head>
    <body>
        <a class="button" href="#">
            <img class="overlay" src="http://translationgames.org/images/button1overlay.png" alt="Translation games">
            <img class="default" src="http://translationgames.org/images/button1.png" alt="Translation games">
        </a>
    </body>
</html>

我希望这能对您有所帮助。

光标:指针在IE10中根本不会出现,而在所有其他浏览器中都会出现。有什么想法吗?在我的#otrigger中,我有cursor:pointer,但它在IE10中不起作用。JSFIDLE的指针有点奇怪,但是你可以看到这里的问题,我还没有纠正IE9的宽度,所以请不要尝试使用它。游标:指针在IE10中根本不出现,而在所有其他浏览器中出现。有什么想法吗?在我的#otrigger中,我有cursor:pointer,但它在IE10中不起作用。JSFIDLE的指针有点奇怪,但是你可以看到这里的问题,我还没有纠正IE9的宽度,所以请不要尝试使用它。很抱歉,我要到下周末才有时间检查。我唯一觉得有点问题的是,我这么做是为了让我的按钮按%缩放。我不记得为什么了,但我坚持用css来做它。下周六我必须去看看。我在网上搜索了一个bug或者关于IE中带有游标:指针的透明div触发器的东西,但是我什么也没找到。透明度不是问题。我做了一个按钮来测试,但仍然不起作用,我给所有的孩子添加了z-index,但仍然不起作用。我真的很困惑。您应该能够将
.button
更改为基于
%
的维度。很抱歉,我要到下周末才能查看此内容。我唯一觉得有点问题的是,我这么做是为了让我的按钮按%缩放。我不记得为什么了,但我坚持用css来做它。下周六我必须去看看。我在网上搜索了一个bug或者关于IE中带有游标:指针的透明div触发器的东西,但是我什么也没找到。透明度不是问题。我做了一个按钮来测试,但仍然不起作用,我给所有的孩子添加了z-index,但仍然不起作用。我真的很困惑,您应该能够将
.button
更改为基于
%
的维度。
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Hover-Fading Buttons</title>
        <style>
            .button {
                width: 100px;
                height: 100px;
                display: block;
                position: relative;
            }
            .button img {
                border: 0;
                width: 100%;
                top: 0; left: 0;
                position: absolute;
                transition: opacity .5s;
            }
            .button:hover .default {
                opacity: 0;
            }
        </style>
    </head>
    <body>
        <a class="button" href="#">
            <img class="overlay" src="http://translationgames.org/images/button1overlay.png" alt="Translation games">
            <img class="default" src="http://translationgames.org/images/button1.png" alt="Translation games">
        </a>
    </body>
</html>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Hover-Fading Buttons</title>
        <style>
            .button {
                width: 100px;
                height: 100px;
                display: block;
                position: relative;
            }
            .button img {
                border: 0;
                width: 100%;
                top: 0; left: 0;
                position: absolute;
            }
        </style>
        <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.1.js"></script>
        <script>
            $(function () {
                $(document).on("mouseover mouseout", ".button", function () {
                    $(this).find(".default").stop().fadeToggle(300);
                });
            });
        </script>
    </head>
    <body>
        <a class="button" href="#">
            <img class="overlay" src="http://translationgames.org/images/button1overlay.png" alt="Translation games">
            <img class="default" src="http://translationgames.org/images/button1.png" alt="Translation games">
        </a>
    </body>
</html>