0
我試圖鏈接的圖像,在HTML中看起來是這樣的:我的圖片鏈接將無法正常工作
<a href="#" class="image"><img src="logo.png"></a>
和CSS我有:
.baraMeniu a.image{
display:block;
}
是啊......顯示:塊是一個尷尬的嘗試,使圖像點擊。 我是begginer所以請一步一步來。
編輯:我忘了說我的形象具有以下屬性:
.baraMeniu img{
width:100%;
height:40em;
position:absolute;
z-index:0;/*the image*/
}
.baraMeniu a.image{
/*the clickable image*/
}
.baraMeniu .st{
font-size:2em;
padding-top:0.15em;
padding-left:0.7em;
padding-right:0.5em;
color:orange;
font-family:'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
display:inline;
text-decoration:none;
float:left;
}
.baraMeniu .dr{
font-size:2em;
padding-top:0.15em;
padding-left:0.7em;
padding-right:0.5em;
color:orange;
font-family:'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
display:inline;
text-decoration:none;
float:right;
}
.baraMeniu #ind{
text-indent:20px;
}
我編輯了這個問題。對不起 –
而我,我的答案。 – TRose
如果我將圖像的z-index設置爲0,並將所有其他的東西設置爲1,爲什麼圖像覆蓋了這些東西? –