Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/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
Html 使用位置时链接不起作用:固定在tumblr上_Html_Css - Fatal编程技术网

Html 使用位置时链接不起作用:固定在tumblr上

Html 使用位置时链接不起作用:固定在tumblr上,html,css,Html,Css,我一直在尝试创建一个自定义tumblr主题,但每当我在一个有position:fixed的div中放置一个链接时,该链接就会变得不可读取,并被视为普通文本 这是链接不起作用的地方: <div id="sidebar"><center> <p id="avap"> <br><b>EARTH-BEETLE</b> <br><a href="earth-beetle.tumblr.com"

我一直在尝试创建一个自定义tumblr主题,但每当我在一个有position:fixed的div中放置一个链接时,该链接就会变得不可读取,并被视为普通文本

这是链接不起作用的地方:

<div id="sidebar"><center>
    <p id="avap">
    <br><b>EARTH-BEETLE</b>
    <br><a href="earth-beetle.tumblr.com"><img src="{PortraitURL-64}" /></a>
    </p>  
      <a href="http://chickensmoothie.com">test link</a>
    </center></div>
</div>

将z索引更改为5有效,谢谢

很好。您需要发布完整的代码。我猜容器在另一个容器后面:尝试增加z索引
 #sidebar {
    background-color: white;
    width: 300px;
    height: 300px;
    position: fixed;
    top: 150px;
    left: 35px;
    border-style: solid;
    border-width: 2px;
    }
#tagp {
    background-color: #87DEBE;
    border-style: solid;
    border-width: 2px;
    position: fixed;
    top: 490px;
    left: 35px;
    border-color: #208560;
    width: 250px;
    height: 50px;
}
#avap {
    background-color: #87DEBE;
    width: 300px;
    height: 150px;
}