如何得到一個列下拉從瀏覽器窗口的一段時間後,從上到下用戶已經在瀏覽網頁後滴下來?說5秒。然後,該欄會將頁面上的所有內容向下推,直到欄完成顯示。該欄將用於顯示通知用戶某些內容的單行文本。也許吧右邊的一個小X可以關閉它。信息欄,一個時間段
目前是這樣的CSS:
#infobar {
border-bottom: 5px solid;
height: 25px;
position: fixed;
width: 100%;
border-bottom-color: #F00;
background-color: #9C9;
margin-top:-16px;
}
#infobar .text {
color: #FFFFFF;
float: left;
font-family: arial;
font-size: 12px;
padding: 5px 0;
position: relative;
text-align: center;
width: 100%;
}
#infobar .text a {
color: #FAFAFA;
}
#infobar .text a:hover {
color: #FFE2A0;
}
</style>
和HTML:
<div id="infobar">
<div class="text">
....this is the bar text....
</div>
</div>
你需要使用Javascript/jQuery來做到這一點,與HTML/CSS只有不可能 –