提示框的两种写法

1.

代码:

<style type="text/css">
a.info { 
 position:relative; z-index:0; background-color:#ccc; color:#000; text-decoration:none } 
a.info:hover {  
 z-index:1; background-color:#ff0 } 
a.info span {  
 display: none } 
a.info:hover span { display:block; position:absolute; top:15px; left:10px; width:130px; border:1px solid #0cf; background-color:#cff; color:#000; text-align: center } 
/*关键代码结束*/
</style>
<td class="FormLastTd" colspan="${fn:length(secendAllList)}">
            总体
            <a class="info" href="javascript:;">
            <img src="http://nb001722.sosoo.net/51js.gif" border="0"><span>这是我在51js.com的专用头像</span></a>
            </td>

2.

 

posted on 2014-12-21 21:02  w z y  阅读(152)  评论(0编辑  收藏  举报