如何创建像Tooltip这样的CSS菜单

时间:2015-05-15 10:17:10

标签: html css

我想像工具提示一样创建CSS菜单。 请参阅附图,了解我想要的确切内容。 enter image description here

提前致谢。

1 个答案:

答案 0 :(得分:-3)

.tooltip-block:hover:after{
    border: 1px solid #fc0;
    padding: 3px 6px;
    background: #fffea1;
    content: attr(data-title);
    position: absolute;
    right: -40px;
    top: -26px;
}

在悬停时尝试此操作可能会有所帮助