2011-04-02 54 views
0

我爲我的網頁創建了一個圖像選取框。但是,如何去除最後一張和第一張圖像之間的空白以獲得連續效果?我給我下面使用的代碼,刪除html中選框的空間

<marquee style="overflow:" behavior="scroll" direction="left" OnMouseOver="this.stop()" OnMouseOut="this.start()"> 
    <img src="images/Bluelounge.gif" width="300" height="200" alt="lon"> 
    <img src="images/Southleather.gif" width="300" height="200" alt="south"> 
    <img src="images/Dell-monitor.gif" width="300" height="200" alt="monitor"> 
    <img src="images/Spphire.gif" width="300" height="200" alt="card"> 
</marquee> 

回答

2

添加CSS規則,以確保所有間距選取框內圖像之間去除:

marquee img {border:none; padding:0; margin:0;} 

注:

字幕元素已經obsoleted in HTML 5.