首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

过长数据名截取并鼠标触发展示全名

2012-10-09 
过长数据名截取并鼠标触发显示全名span stylefloat:left width:190px height:24px overflow:hidden

过长数据名截取并鼠标触发显示全名
<span style="float:left; width:190px; height:24px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">
  <a href="#" title="when i was young,i listen to the radio,my baby!">
    when i was young,i listen to the radio,my baby!
  </a>
</span>




显示如下:
 
  静态显示:when i was young,i listen to the r...
  鼠标触发时,显示全名。
  下有附件为效果图
  试试看。。。

热点排行