Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 为什么链接/锚不工作?_Jquery_Html - Fatal编程技术网

Jquery 为什么链接/锚不工作?

Jquery 为什么链接/锚不工作?,jquery,html,Jquery,Html,我迷路了!!!希望有人能帮忙。我正在使用jqTouch。我尝试使此链接正常工作: <a href="#nana" style="position:absolute; left:70px; heigth:3px; width:200px; top:70px;">test</a> 但它不起作用 下面是整个身体: <body> <div id="jqt"> <div id="home" class="c

我迷路了!!!希望有人能帮忙。我正在使用jqTouch。我尝试使此链接正常工作:

<a href="#nana" style="position:absolute; left:70px; heigth:3px; width:200px; top:70px;">test</a>

但它不起作用

下面是整个身体:

<body>
        <div id="jqt">
            <div id="home" class="current">
                <div class="horizontal-scroll">
                    <table >
                        <tr>
                            <td>
                                <div class="slide-container current">
                                    <h1 style="position: absolute; color:white; font-size:28px; left:60px; width:300px; top:0px;"> 1. Dezember </h1>
                                    <a href="#nana" style="position:absolute; left:70px; heigth:3px; width:200px; top:70px;">test</a>                       
                                    <img src="Bilder/Foto1@2x.jpg" width="320" higth="460" position="absolute" overflow="hidden" alt="Kuss"/>
                                </div>
                            </td>
                            <td><div class="slide-container"><img src="Bilder/Foto2.png" width="320" higth="460" alt="Kuss"/></div></td>
                            <td><div class="slide-container"><img src="Bilder/Foto2.png" width="320" higth="480" alt="Kuss"/></div></td>
                        </tr>
                    </table>
                </div>
            </div>

            <div id="nana">
             <h1>testtesttest</h1>
                <img src="Bilder/Foto1@2x.jpg" width="320" higth="460" position="absolute" overflow="hidden" alt="Kuss"/>
            </div>

        </div>
    </body>

1.德森伯
测试

此代码没有问题。。尝试将此CSS属性添加到链接中

z-index:10;

这可能会解决问题。

此代码没有问题。。尝试将此CSS属性添加到链接中

z-index:10;

这可能会解决问题。

明白了:我必须添加一个class=“slide”。谢谢,请将您的解决方案作为答案发布,并接受您自己的答案。明白了:我必须添加一个class=“slide”。谢谢,请将您的解决方案作为答案发布,并接受您自己的答案。