em实现倒三角的提示效果

效果如下:


鼠标放上显示第二个的效果!
代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br/><html xmlns="http://www.w3.org/1999/xhtml"><br/><head><br/><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><br/><title>em实现倒三角的提示效果-JS特效学院</title><br/></head><br/><style><br/> <!--<br/> #menu {width:500px;padding:0;margin:40px auto;list-style-type:none;display:<span href="tag.php?name=tab" onclick="tagshow(event)" class="t_tag">tab</span>le;}<br/> #menu li {width:100px; float:left; line-height:30px}<br/> #menu a {position:relative;display:block; text-decoration:none; background:#cccccc;width:100px; }<br/> #menu a span {display:block; font-weight:bold;color:#000; border-style:solid;border-width:0px 2px 2px 0px; border-color:#fff #fff #06a #fff;text-align:center; }#menu a em {display:none;}<br/> #menu a:hover {background:#FF0000;}#menu a:hover span {color:#fff; }<br/> #menu a:hover em {display:block; overflow:hidden; border:6px solid #06a; border-color:#06a #fff; border-width:6px 6px 0 6px; position:absolute; left:50%; top:100%;margin-left:-6px;}<br/> --><br/> </style><br/><body><br/> <ul id="menu"><br/> <li><a href="http://www.xunzou.com/"><span>M One</span><em></em></a></li><br/> <li><a href="http://www.xunzou.com/"><span>M Two</span><em></em></a></li><br/> <li><a href="http://www.xunzou.com/"><span>M Three</span><em></em></a></li><br/> <li><a href="http://www.xunzou.com/"><span>M Four</span><em></em></a></li><br/> <br/> </ul><br/></body><br/></html>



这个不知道在哪里看的,转过来了,地址不记得了,感谢原作者,如果你知道,请告诉我,谢谢。

0 条留言

我要留言
(必填)
(必填,绝不公开)