本章节分享一段代码实例,它是使用纯css实现的鼠标悬浮弹出说明层效果。
代码实例如下:
蚂蚁部落 div{ clear:both; margin:5px 0 0 0; font-size:12px; line-height:22px;}a.alt{ position:relative; background-color:#fff; float:left; width:158px; height:20px; margin:0 auto; border:1px solid #eee; text-align:center; text-decoration:none; color:#0066cc;}a.alt:hover{ background:#fff; text-decoration:none; z-index:2;}a.alt span{ display:none;}a.alt:hover span{ position:absolute; display:block; top:-1px; left:158px; width:130px; height:30px; border:1px solid #eee; z-index:1;}前端网站 蚂蚁部落
查看更多关于css实现的当鼠标悬浮弹出说明层效果_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did110883