为什么链接/锚点不起作用?

时间:2011-11-27 11:13:10

标签: 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="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 个答案:

答案 0 :(得分:0)

此代码没有错误。尝试将此CSS属性添加到您的链接

z-index:10;

这可能会解决它。

相关问题