我該如何製作橫幅廣告,以便頁面頂部和底部的橫幅(http://i.imgur.com/SxjbCJV.jpg)位於頁面的兩側?網頁上的橫幅廣告
目前,我有他們兩個固定在頁面的頂部和底部:
#header {
position: fixed;
top: 0;
width: 100%;
height: 66px;
z-index: 999;
}
#footer {
position: fixed;
bottom: 0;
width: 100%;
height: 66px;
z-index: 999;
}
和HTML:
<body>
<div id="wrapper">
<a href="project.html">
<div id="header">
<button id="next-button" href="project.html"><i class="fa fa-arrow-circle-right fa-4x"></i>
</button>
</div>
</a>
<div id="main">
<div id="splash">
<div id="name">
<h1 class="wow animated flipInX">Max Wilson</h1>
</div>
<div id="profile">
<img src="img/Logo.png" class="wow animated rollIn" data-wow-delay="1s">
</div>
<div id="subtext">
<h2 class="wow animated fadeInUp" data-wow-delay="2s">Aspiring Developer </h2>
</div>
</div>
</div>
</div>
<a href="project.html">
<div id="footer">
<button id="prev-button" href="project.html"><i class="fa fa-arrow-circle-left fa-4x"></i>
</button>
</div>
</a>
提前感謝! 最大
這工作,謝謝!你是否也有辦法將箭頭置於兩側? –
你應該可以應用'text-align;中心「到#header和#footer ... –
似乎並不想要居中,主要內容或文本在旁邊:http://i.imgur.com/NFPU6Nr.jpg –