所以我一直在使用一個圖像,使該地區的工作,但我一直在使用一個非常寬的圖像與白色背景只是給這個地區的可能性幻覺。但是,隨着圖像變小,這會在較小的屏幕上產生問題。使整個頂部酒吧懸停不用圖像
我所指的區域是頂部的白色條帶中間的箭頭。我希望能夠刪除圖像(http://outside.hobhob.uk/test/img/a.jpg)並用簡單的文本箭頭替換它;
<i class="fa fa-arrow-down"></i>
因此編輯下面的代碼;
<header id="header" role="banner">
<center id="showHeader">
<img src="http://outside.hobhob.uk/test/img/a.jpg">
<div class="headwidth">
<h1 class="logo">
<a href="index.html" title="Outside The Line"><img src="images/logo.png" alt=""></a>
</h1>
<nav id="main-nav">
<a href="index.html">Work</a>
<a href="about.html">About</a>
<a href="testimonials.html">Testimonials</a>
<a href="contact.html">Contact</a>
</nav>
</div>
</center>
</header>
和下面的CSS:
center#showHeader > img:hover + .headwidth, .headwidth:hover
{
height: 220px;
width: 100%;
}
.headwidth {
max-width: 1000px;
width: 100%;
position: relative;
margin:0 auto;
background-color: #ffffff;
display: block;
transition: .7s;
height: 0px;
overflow: hidden;
}
.logo {
color:#29251F;
font-size: 84px;
line-height: 1.1;
word-wrap: break-word;
font-weight: 800;
text-transform: uppercase;
margin:0;
text-align:left;
}
.logo a {
margin:0 auto;
}
我說:懸停#showHeader結束,但這只是停止它的工作都在一起,當我在添加箭頭文本替換圖像。 。 有什麼建議麼?
謝謝!
'
我可以用什麼來代替?有什麼建議麼? –
現在它工作正常嗎? – iyyappan