作家
登录

CSS Border属性制作小三角

作者: 来源:www.28hudong.com 2012-11-19 22:29:12 阅读 我要评论

效果如下: 鼠标放上显示第二个的效果!这个不知道在哪里看的,转过来了,地址不记得了,感谢原作者 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>em实现倒三角的提示效果-JS特效学院</title> </head> <style> <!-- #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;} #menu li {width:100px; float:left; line-height:30px} #menu a {position:relative;display:block; text-decoration:none; background:#cccccc;width:100px; } #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;} #menu a:hover {background:#FF0000;}#menu a:hover span {color:#fff; } #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;} --> </style> <body> <ul id="menu"> <li><a href="http://www.jb51.net/"><span>M One</span><em></em></a></li> <li><a href="http://www.jb51.net/"><span>M Two</span><em></em></a></li> <li><a href="http://www.jb51.net/"><span>M Three</span><em></em></a></li> <li><a href="http://www.jb51.net/"><span>M Four</span><em></em></a></li> </ul> </body> </html> 提示:您可以先修改部分代码再运行

  推荐阅读

  纯CSS搞定按钮、链接点击时的虚线

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" c>>>详细阅读


本文标题:CSS Border属性制作小三角

地址:http://www.17bianji.com/kaifa2/CSS/16684.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)