但願的效果如圖:css
網上找了各純css的 作了下修改:html
代碼以下:ide
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <style> .logo1{ width:150px; height:60px; float:left } a.alt{ position:relative; background-color:#fff; float:left; width:158px; height:60px; border:1px solid #ccc; text-align:center; text-decoration:none; color:#333333; } a.alt:hover{background:#fff; text-decoration:none;z-index:2;} a.alt div{display:none;} a.alt:hover div{ display:block; position:absolute; top:-1px; left:-300px; width:300px; height:300px; border:2px solid #000; z-index:1; background-color:#fff; } .brandAlertCen{ border:1px solid #000; width:300px; height:300px; } </style> <div style="margin-left:500px;width:300px;height:auto"> <div class="logo1"><a class='alt' href="#"><div class="brandAlertCen">專一於網頁特效及廣告代碼。<br /><img src="http://p0.jmstatic.com/pop_feature/12812/new_pre_pic.png" width="280" /></div><img src="http://p_w_picpaths.253.com/upload/brandImages/139865426888345.jpg" /></a></div> <div class="logo1"><a class='alt' href="#"><div class="brandAlertCen">專一於網頁特效及廣告代碼。<br /><img src="http://p0.jmstatic.com/pop_feature/12812/new_pre_pic.png" width="280" /></div><img src="http://p_w_picpaths.253.com/upload/brandImages/139865426888345.jpg" /></a></div> <div class="logo1"><a class='alt' href="#"><div class="brandAlertCen">專一於網頁特效及廣告代碼。<br /><img src="http://p0.jmstatic.com/pop_feature/12812/new_pre_pic.png" width="280" /></div><img src="http://p_w_picpaths.253.com/upload/brandImages/139865426888345.jpg" /></a></div> <div class="logo1"><a class='alt' href="#"><div class="brandAlertCen">專一於網頁特效及廣告代碼。</div><img src="http://p_w_picpaths.253.com/upload/brandImages/139865426888345.jpg" /></a></div> <div class="logo1"><a class='alt' href="#"><div class="brandAlertCen">專一於網頁特效及廣告代碼。</div><img src="http://p_w_picpaths.253.com/upload/brandImages/139865426888345.jpg" /></a></div> </div>
demo下載地址:3d