Css href不使用z-index-1

Css href不使用z-index-1,css,Css,你好,我有这个html代码 <div class="tf"> <a href="http://www.twitter.com/!!!" target="_blank" ><img src="images/twitter.png" width="2%" class="tfimg"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&l

你好,我有这个html代码

<div class="tf">
<a href="http://www.twitter.com/!!!" target="_blank" ><img src="images/twitter.png" width="2%" class="tfimg"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.facebook.com/pages/!!!/212810852094228" target="_blank"><img src="images/facebook.png"  width="2%" class="tfimg"></a>
</div>

要成为边框外的图像,但我无法在图像中单击,那么问题出在哪里?解决方案是什么?

您的两个图像都分配了相同的类。通过不将它们设置为不同的位置,可以将它们堆叠在彼此的顶部,而facebook.com则显示在顶部,因为它是html中的最后一个。如果希望它们彼此并排出现,可以应用如下内容:

.tftwitter {
position:absolute;
left:0px;
border:none;
}

.tffacebook {
position:absolute;
left: 20px;
border:none;
}
现在为每个图像分配相应的类。

尝试使用:

.tf{
显示:内联块;
/*你的更多代码*/

}

你能再多给我一点描述吗,我不太明白你想在那里实现什么…哈哈,他用空格将facebook图像定位到右侧,就像这样,但是如果我这样做,z索引将是-1,a href不起作用,那么解决方案是什么?
.tftwitter {
position:absolute;
left:0px;
border:none;
}

.tffacebook {
position:absolute;
left: 20px;
border:none;
}