我超鏈接圖像和文本下創建縮略圖和mousehover div內容應該顯示,到目前爲止mousehover工作正常,因爲我不擅長CSS。我無法使用span獲取圖像下面的文本。 另請參閱www.ge.com上的參考資料,在頁面右側的「查看更多故事」下,我想將其複製到我的網站上,請幫助。CSS超鏈接文本下面的圖像使用跨度標記不工作
<a href="" class="nav-holder-link">
<img width="67" height="51" class="nav-header-image" src="images/img1.jpg" alt="" />
<span class="nav-holder-text">moving</span>
<div class="nav-holder-preview">
<img width="305" height="100" src="images/img1.jpg" alt="" />
<p style="position:absolute;top:55px;padding-left:10px;padding-right:10px">Powered by GE locomotives, the Juice Train is bringing Orange Juice to your breakfast table in one of the most efficient ways possible.</p>
</div>
</a>
<a href="" class="nav-holder-link">
<img width="67" height="51" class="nav-header-image" src="images/img2.jpg" alt=""/>
<span class="nav-holder-text">Watch</span>
<div class="nav-holder-preview">
<img width="305" height="100" src="images/img2.jpg" alt="" />
<p style="position:absolute;top:55px;padding-left:10px;padding-right:10px">Watch this time lapse as the Tropicana/CSX Juice Train, powered by two 4,400 HP GE </p>
</div>
</a>
塊級元素,如內聯元素內DIV如錨標記是格式不正確的HTML。內聯元素應該只包含內聯元素。 – Scott