用jquery模仿的a的title属性的例子

用jQuery实现的模仿a的title属性的例子,在测试的时候ie6,7上出现了层次混乱,不过最终解决了。

HTML代码如下:

css代码如下

rush:css;"> * { margin:0; padding:0; } body { font-size:12px; } .wrap { width:600px; margin:100px auto; } .clearfix:after,.clearfix:before { display:table; content: ""; } .clearfix:after { clear:both; overflow: hidden; } .clearfix { zoom: 1; } .list { position:relative; //作为定位的父元素,li直接做父元素出现元素内容重叠问题 } .list li { list-style:none; width:100px; height:24px; line-height:24px; margin-right:10px; float:left; } .list li a { text-decoration:none; color:#333; display:block; } .show { position:absolute; width:100px; background:#FFFFE1; border:1px solid #ffcc01; padding:6px; display:none; z-index:5; margin-top:10px; //代替top margin-left:60px; //代替left } .show p { height:18px; line-height:18px; } .list li a:hover { text-decoration:underline; color:#FF0000; }

jQuery代码如下:

rush:js;">

预览效果;

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: <span id=&quot...
jQuery 添加水印 <script src="../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...